/// <summary> /// Create a new Ledger object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="dateTime">Initial value of the DateTime property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="categoryId">Initial value of the CategoryId property.</param> /// <param name="payerId">Initial value of the PayerId property.</param> /// <param name="checkNumber">Initial value of the CheckNumber property.</param> /// <param name="invoiceNumber">Initial value of the InvoiceNumber property.</param> /// <param name="memo">Initial value of the Memo property.</param> /// <param name="category_Id">Initial value of the Category_Id property.</param> public static Ledger CreateLedger(global::System.Guid id, global::System.DateTime dateTime, global::System.Decimal amount, global::System.Guid categoryId, global::System.Guid payerId, global::System.String checkNumber, global::System.String invoiceNumber, global::System.String memo, global::System.Guid category_Id) { Ledger ledger = new Ledger(); ledger.Id = id; ledger.DateTime = dateTime; ledger.Amount = amount; ledger.CategoryId = categoryId; ledger.PayerId = payerId; ledger.CheckNumber = checkNumber; ledger.InvoiceNumber = invoiceNumber; ledger.Memo = memo; ledger.Category_Id = category_Id; return ledger; }
/// <summary> /// Deprecated Method for adding a new object to the Ledgers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToLedgers(Ledger ledger) { base.AddObject("Ledgers", ledger); }