Exemple #1
0
 /// <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;
 }
Exemple #2
0
 /// <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);
 }
 public void setRestaurant(restaurant restaurant)
 {
     contexto.SaveChanges();
 }