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