![]() |
#4 |
Участник
|
Все равно выводит только 50... Skip и Take не помогли.
X++: Console.WriteLine("Loading clients.."); var clients = (from a in svc_crm.AccountSet select new Account { AccountId = a.AccountId, Name = a.Name }); foreach (var c in clients.Skip(100)) { Console.WriteLine("Clients " + i); Console.WriteLine("Creating new dlr_legalentity.."); var new_legalperson = new CRM.dlr_legalentity() { dlr_legalentityId = Guid.NewGuid(), dlr_name = String.Format("auto for client ({0})", c.Name.Substring(0, Math.Min(c.Name.Length, 30)), c.AccountId), dlr_accountid = new EntityReference { Id = c.AccountId, LogicalName = "account" } }; svc_crm.AddTodlr_legalentitySet(new_legalperson); svc_crm.SaveChanges(); i++;} |
|