/// <summary> /// Deprecated Method for adding a new object to the Meal_Preference EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMeal_Preference(Meal_Preference meal_Preference) { base.AddObject("Meal_Preference", meal_Preference); }
/// <summary> /// Create a new Meal_Preference object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="mealType">Initial value of the MealType property.</param> public static Meal_Preference CreateMeal_Preference(global::System.Int32 id, global::System.String mealType) { Meal_Preference meal_Preference = new Meal_Preference(); meal_Preference.Id = id; meal_Preference.MealType = mealType; return meal_Preference; }