/// <summary> /// Create a new SupplementEntry object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="miligrams">Initial value of the Miligrams property.</param> /// <param name="entryDate">Initial value of the EntryDate property.</param> /// <param name="savedDate">Initial value of the SavedDate property.</param> public static SupplementEntry CreateSupplementEntry(global::System.Int32 id, global::System.Guid userId, global::System.String description, global::System.Decimal miligrams, global::System.DateTime entryDate, global::System.DateTime savedDate) { SupplementEntry supplementEntry = new SupplementEntry(); supplementEntry.Id = id; supplementEntry.UserId = userId; supplementEntry.Description = description; supplementEntry.Miligrams = miligrams; supplementEntry.EntryDate = entryDate; supplementEntry.SavedDate = savedDate; return supplementEntry; }
/// <summary> /// Deprecated Method for adding a new object to the SupplementEntries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSupplementEntries(SupplementEntry supplementEntry) { base.AddObject("SupplementEntries", supplementEntry); }