예제 #1
0
 /// <summary>
 /// 用于向 ShopDishe EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToShopDishe(ShopDishe shopDishe)
 {
     base.AddObject("ShopDishe", shopDishe);
 }
예제 #2
0
 public void AddWithoutSave(ShopDishe shopDishe)
 {
     db.ShopDishe.AddObject(shopDishe);
 }
예제 #3
0
 /// <summary>
 /// 创建新的 ShopDishe 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="shopId">ShopId 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="price">Price 属性的初始值。</param>
 /// <param name="categoryId">CategoryId 属性的初始值。</param>
 /// <param name="orderIndex">OrderIndex 属性的初始值。</param>
 public static ShopDishe CreateShopDishe(global::System.Int32 id, global::System.Int32 shopId, global::System.String name, global::System.Double price, global::System.Int32 categoryId, global::System.Int16 orderIndex)
 {
     ShopDishe shopDishe = new ShopDishe();
     shopDishe.Id = id;
     shopDishe.ShopId = shopId;
     shopDishe.Name = name;
     shopDishe.Price = price;
     shopDishe.CategoryId = categoryId;
     shopDishe.OrderIndex = orderIndex;
     return shopDishe;
 }