/// <summary> /// Create a new PlannedMeal object. /// </summary> /// <param name="plannedMealID">Initial value of the PlannedMealID property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="pantryItemID">Initial value of the PantryItemID property.</param> public static PlannedMeal CreatePlannedMeal(global::System.Int32 plannedMealID, global::System.DateTime date, global::System.Int32 pantryItemID) { PlannedMeal plannedMeal = new PlannedMeal(); plannedMeal.PlannedMealID = plannedMealID; plannedMeal.Date = date; plannedMeal.PantryItemID = pantryItemID; return plannedMeal; }
/// <summary> /// Deprecated Method for adding a new object to the PlannedMeals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPlannedMeals(PlannedMeal plannedMeal) { base.AddObject("PlannedMeals", plannedMeal); }