예제 #1
0
 /// <summary>
 /// Create a new Transfer object.
 /// </summary>
 /// <param name="transferID">Initial value of the TransferID property.</param>
 /// <param name="from">Initial value of the From property.</param>
 /// <param name="to">Initial value of the To property.</param>
 /// <param name="dateOfBusiness">Initial value of the DateOfBusiness property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 public static Transfer CreateTransfer(global::System.Int32 transferID, global::System.String from, global::System.String to, global::System.DateTime dateOfBusiness, global::System.Decimal amount)
 {
     Transfer transfer = new Transfer();
     transfer.TransferID = transferID;
     transfer.From = from;
     transfer.To = to;
     transfer.DateOfBusiness = dateOfBusiness;
     transfer.Amount = amount;
     return transfer;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Transfers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTransfers(Transfer transfer)
 {
     base.AddObject("Transfers", transfer);
 }