/// <summary> /// Deprecated Method for adding a new object to the FoodEntryTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFoodEntryTypes(FoodEntryType foodEntryType) { base.AddObject("FoodEntryTypes", foodEntryType); }
/// <summary> /// Create a new FoodEntryType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="dietPlanId">Initial value of the DietPlanId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> public static FoodEntryType CreateFoodEntryType(global::System.Int32 id, global::System.Int32 dietPlanId, global::System.String name, global::System.Boolean isActive) { FoodEntryType foodEntryType = new FoodEntryType(); foodEntryType.Id = id; foodEntryType.DietPlanId = dietPlanId; foodEntryType.Name = name; foodEntryType.IsActive = isActive; return foodEntryType; }