예제 #1
0
 /// <summary>
 /// 用于向 CreditCard EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToCreditCard(CreditCard creditCard)
 {
     base.AddObject("CreditCard", creditCard);
 }
예제 #2
0
 /// <summary>
 /// 创建新的 CreditCard 对象。
 /// </summary>
 /// <param name="creditCardID">CreditCardID 属性的初始值。</param>
 /// <param name="memberID">MemberID 属性的初始值。</param>
 /// <param name="cardIssuerID">CardIssuerID 属性的初始值。</param>
 /// <param name="creditCardTypeID">CreditCardTypeID 属性的初始值。</param>
 /// <param name="creditCardNumber">CreditCardNumber 属性的初始值。</param>
 /// <param name="holderName">HolderName 属性的初始值。</param>
 /// <param name="createdByID">CreatedByID 属性的初始值。</param>
 /// <param name="lastModifiedByID">LastModifiedByID 属性的初始值。</param>
 /// <param name="createdDate">CreatedDate 属性的初始值。</param>
 /// <param name="lastModifiedDate">LastModifiedDate 属性的初始值。</param>
 public static CreditCard CreateCreditCard(global::System.Guid creditCardID, global::System.Guid memberID, global::System.Guid cardIssuerID, global::System.Guid creditCardTypeID, global::System.String creditCardNumber, global::System.String holderName, global::System.Guid createdByID, global::System.Guid lastModifiedByID, global::System.DateTime createdDate, global::System.DateTime lastModifiedDate)
 {
     CreditCard creditCard = new CreditCard();
     creditCard.CreditCardID = creditCardID;
     creditCard.MemberID = memberID;
     creditCard.CardIssuerID = cardIssuerID;
     creditCard.CreditCardTypeID = creditCardTypeID;
     creditCard.CreditCardNumber = creditCardNumber;
     creditCard.HolderName = holderName;
     creditCard.CreatedByID = createdByID;
     creditCard.LastModifiedByID = lastModifiedByID;
     creditCard.CreatedDate = createdDate;
     creditCard.LastModifiedDate = lastModifiedDate;
     return creditCard;
 }