예제 #1
0
 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();
 }
예제 #2
0
		private void detach_webpages_Memberships(webpages_Membership entity)
		{
			this.SendPropertyChanging();
			entity.Client = null;
		}
예제 #3
0
 partial void Deletewebpages_Membership(webpages_Membership instance);
예제 #4
0
 partial void Updatewebpages_Membership(webpages_Membership instance);
예제 #5
0
 partial void Insertwebpages_Membership(webpages_Membership instance);