/// <summary> /// Create a new FoodEntry object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="entryDate">Initial value of the EntryDate property.</param> /// <param name="savedDate">Initial value of the SavedDate property.</param> public static FoodEntry CreateFoodEntry(global::System.Int32 id, global::System.Guid userId, global::System.String title, global::System.DateTime entryDate, global::System.DateTime savedDate) { FoodEntry foodEntry = new FoodEntry(); foodEntry.Id = id; foodEntry.UserId = userId; foodEntry.Title = title; foodEntry.EntryDate = entryDate; foodEntry.SavedDate = savedDate; return foodEntry; }
/// <summary> /// Deprecated Method for adding a new object to the FoodEntries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFoodEntries(FoodEntry foodEntry) { base.AddObject("FoodEntries", foodEntry); }