/// <summary> /// 用于向 Merchant EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToMerchant(Merchant merchant) { base.AddObject("Merchant", merchant); }
/// <summary> /// 创建新的 Merchant 对象。 /// </summary> /// <param name="merchantID">MerchantID 属性的初始值。</param> /// <param name="merchantName">MerchantName 属性的初始值。</param> /// <param name="regCode">RegCode 属性的初始值。</param> /// <param name="isDeleted">IsDeleted 属性的初始值。</param> /// <param name="createdByID">CreatedByID 属性的初始值。</param> /// <param name="lastModifiedByID">LastModifiedByID 属性的初始值。</param> /// <param name="createdDate">CreatedDate 属性的初始值。</param> /// <param name="lastModifiedDate">LastModifiedDate 属性的初始值。</param> public static Merchant CreateMerchant(global::System.Guid merchantID, global::System.String merchantName, global::System.String regCode, global::System.Boolean isDeleted, global::System.Guid createdByID, global::System.Guid lastModifiedByID, global::System.DateTime createdDate, global::System.DateTime lastModifiedDate) { Merchant merchant = new Merchant(); merchant.MerchantID = merchantID; merchant.MerchantName = merchantName; merchant.RegCode = regCode; merchant.IsDeleted = isDeleted; merchant.CreatedByID = createdByID; merchant.LastModifiedByID = lastModifiedByID; merchant.CreatedDate = createdDate; merchant.LastModifiedDate = lastModifiedDate; return merchant; }