/// <summary> /// Create a new Weight object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="date">Initial value of the Date property.</param> public static Weight CreateWeight(global::System.Int32 id, global::System.Decimal amount, global::System.DateTime date) { Weight weight = new Weight(); weight.Id = id; weight.Amount = amount; weight.Date = date; return weight; }
/// <summary> /// Deprecated Method for adding a new object to the Weights EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToWeights(Weight weight) { base.AddObject("Weights", weight); }