/// <summary> /// Deprecated Method for adding a new object to the WaterEntries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToWaterEntries(WaterEntry waterEntry) { base.AddObject("WaterEntries", waterEntry); }
/// <summary> /// Create a new WaterEntry object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="ounces">Initial value of the Ounces property.</param> /// <param name="entryDate">Initial value of the EntryDate property.</param> /// <param name="savedDate">Initial value of the SavedDate property.</param> public static WaterEntry CreateWaterEntry(global::System.Int32 id, global::System.Guid userId, global::System.Decimal ounces, global::System.DateTime entryDate, global::System.DateTime savedDate) { WaterEntry waterEntry = new WaterEntry(); waterEntry.Id = id; waterEntry.UserId = userId; waterEntry.Ounces = ounces; waterEntry.EntryDate = entryDate; waterEntry.SavedDate = savedDate; return waterEntry; }