コード例 #1
0
ファイル: Model1.Designer.cs プロジェクト: michaellperry/CAP
 /// <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="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.Decimal amount)
 {
     Transfer transfer = new Transfer();
     transfer.TransferID = transferID;
     transfer.From = from;
     transfer.To = to;
     transfer.Amount = amount;
     return transfer;
 }
コード例 #2
0
ファイル: Model1.Designer.cs プロジェクト: michaellperry/CAP
 /// <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);
 }