コード例 #1
0
ファイル: Ep1.Designer.cs プロジェクト: tassotirap/ep1_movel
 /// <summary>
 /// Create a new restaurant object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="status_id">Initial value of the status_id property.</param>
 public static restaurant Createrestaurant(global::System.Int32 id, global::System.String name, global::System.Int32 status_id)
 {
     restaurant restaurant = new restaurant();
     restaurant.id = id;
     restaurant.name = name;
     restaurant.status_id = status_id;
     return restaurant;
 }
コード例 #2
0
ファイル: Ep1.Designer.cs プロジェクト: tassotirap/ep1_movel
 /// <summary>
 /// Deprecated Method for adding a new object to the restaurants EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTorestaurants(restaurant restaurant)
 {
     base.AddObject("restaurants", restaurant);
 }
コード例 #3
0
ファイル: RestaurantDao.cs プロジェクト: tassotirap/ep1_movel
 public void setRestaurant(restaurant restaurant)
 {
     contexto.SaveChanges();
 }