/// <summary> /// Deprecated Method for adding a new object to the Receipt EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToReceipt(Receipt receipt) { base.AddObject("Receipt", receipt); }
/// <summary> /// Create a new Receipt object. /// </summary> /// <param name="rECID">Initial value of the RECID property.</param> /// <param name="rEPID">Initial value of the REPID property.</param> /// <param name="cCID">Initial value of the CCID property.</param> /// <param name="sum">Initial value of the Sum property.</param> /// <param name="vAT">Initial value of the VAT property.</param> /// <param name="from">Initial value of the From property.</param> /// <param name="to">Initial value of the To property.</param> public static Receipt CreateReceipt(global::System.Byte rECID, global::System.Byte rEPID, global::System.Byte cCID, global::System.Int32 sum, global::System.Int32 vAT, global::System.DateTime from, global::System.DateTime to) { Receipt receipt = new Receipt(); receipt.RECID = rECID; receipt.REPID = rEPID; receipt.CCID = cCID; receipt.Sum = sum; receipt.VAT = vAT; receipt.From = from; receipt.To = to; return receipt; }