Example #1
0
 /// <summary>
 /// 创建新的 ViewConsumer 对象。
 /// </summary>
 /// <param name="accountID">AccountID 属性的初始值。</param>
 /// <param name="createdDate">CreatedDate 属性的初始值。</param>
 /// <param name="merchantName">MerchantName 属性的初始值。</param>
 /// <param name="payAmount">PayAmount 属性的初始值。</param>
 /// <param name="memberName">MemberName 属性的初始值。</param>
 /// <param name="memberID">MemberID 属性的初始值。</param>
 /// <param name="merchantID">MerchantID 属性的初始值。</param>
 public static ViewConsumer CreateViewConsumer(global::System.Guid accountID, global::System.DateTime createdDate, global::System.String merchantName, global::System.Decimal payAmount, global::System.String memberName, global::System.Guid memberID, global::System.Guid merchantID)
 {
     ViewConsumer viewConsumer = new ViewConsumer();
     viewConsumer.AccountID = accountID;
     viewConsumer.CreatedDate = createdDate;
     viewConsumer.MerchantName = merchantName;
     viewConsumer.PayAmount = payAmount;
     viewConsumer.MemberName = memberName;
     viewConsumer.MemberID = memberID;
     viewConsumer.MerchantID = merchantID;
     return viewConsumer;
 }
Example #2
0
 /// <summary>
 /// 用于向 ViewConsumer EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToViewConsumer(ViewConsumer viewConsumer)
 {
     base.AddObject("ViewConsumer", viewConsumer);
 }