public static void GetCeInventory(webpages_Membership user) { var rep = new Repository(); var infomediainventory = rep.GetCeInventoryItems(user.Client.ContentEditsClientID); var items = from inv in infomediainventory select new ShopInventory() { ClientID = user.ClientID ?? 0, Name = inv.title }; foreach (var item in items) { if (rep.GetShopInventory(user.ClientID ?? 0, item.Name) == null) rep.Add(item); } rep.Save(); }
private void detach_webpages_Memberships(webpages_Membership entity) { this.SendPropertyChanging(); entity.Client = null; }
partial void Deletewebpages_Membership(webpages_Membership instance);
partial void Updatewebpages_Membership(webpages_Membership instance);
partial void Insertwebpages_Membership(webpages_Membership instance);