Trying (desperately) to find the Microsoft.Sharepoint.Client equivalent of SPList.Fields.Addlookup
My code:
ClientContext ctx = new ClientContext("http://sharepoint/");
Web website = ctx.Web;
ListCreationInformation ci = new ListCreationInformation();
ci.Title = "MyList";
ci.TemplateType = (int)ListTemplateType.GenericList;
List lst = website.Lists.Add(ci);
lst.AddLookup // <- THIS DOES NOT EXIST
lst.Fields.AddLookup // <- NOR DOES THIS
I've tried using AddFieldAsXml with every conceivable combination of attributes/values - no luck
Any help would be greatly appreciated !