/// <summary> /// Deprecated Method for adding a new object to the FoodEntryMealTypeValues EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFoodEntryMealTypeValues(FoodEntryMealTypeValue foodEntryMealTypeValue) { base.AddObject("FoodEntryMealTypeValues", foodEntryMealTypeValue); }
/// <summary> /// Create a new FoodEntryMealTypeValue object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="foodEntryId">Initial value of the FoodEntryId property.</param> /// <param name="mealTypeValueId">Initial value of the MealTypeValueId property.</param> /// <param name="value">Initial value of the Value property.</param> public static FoodEntryMealTypeValue CreateFoodEntryMealTypeValue(global::System.Int32 id, global::System.Int32 foodEntryId, global::System.Int32 mealTypeValueId, global::System.String value) { FoodEntryMealTypeValue foodEntryMealTypeValue = new FoodEntryMealTypeValue(); foodEntryMealTypeValue.Id = id; foodEntryMealTypeValue.FoodEntryId = foodEntryId; foodEntryMealTypeValue.MealTypeValueId = mealTypeValueId; foodEntryMealTypeValue.Value = value; return foodEntryMealTypeValue; }