/// <summary> /// Deprecated Method for adding a new object to the Credits EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCredits(Credit credit) { base.AddObject("Credits", credit); }
/// <summary> /// Create a new Credit object. /// </summary> /// <param name="creditID">Initial value of the CreditID property.</param> /// <param name="accountID">Initial value of the AccountID property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="creditDate">Initial value of the CreditDate property.</param> public static Credit CreateCredit(global::System.Int32 creditID, global::System.Int32 accountID, global::System.Int32 amount, global::System.DateTime creditDate) { Credit credit = new Credit(); credit.CreditID = creditID; credit.AccountID = accountID; credit.Amount = amount; credit.CreditDate = creditDate; return credit; }