/// <summary> /// Create a new Receipt object. /// </summary> /// <param name="receiptId">Initial value of the ReceiptId property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="accountAccountId">Initial value of the AccountAccountId property.</param> public static Receipt CreateReceipt(global::System.Int64 receiptId, global::System.Decimal amount, global::System.String description, global::System.Int64 accountAccountId) { Receipt receipt = new Receipt(); receipt.ReceiptId = receiptId; receipt.Amount = amount; receipt.Description = description; receipt.AccountAccountId = accountAccountId; return receipt; }
/// <summary> /// Deprecated Method for adding a new object to the Receipts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToReceipts(Receipt receipt) { base.AddObject("Receipts", receipt); }