/// <summary> /// 新しい Customer オブジェクトを作成します。 /// </summary> /// <param name="customerID">CustomerID プロパティの初期値。</param> /// <param name="nameStyle">NameStyle プロパティの初期値。</param> /// <param name="firstName">FirstName プロパティの初期値。</param> /// <param name="lastName">LastName プロパティの初期値。</param> /// <param name="passwordHash">PasswordHash プロパティの初期値。</param> /// <param name="passwordSalt">PasswordSalt プロパティの初期値。</param> /// <param name="rowguid">rowguid プロパティの初期値。</param> /// <param name="modifiedDate">ModifiedDate プロパティの初期値。</param> public static Customer CreateCustomer(global::System.Int32 customerID, global::System.Boolean nameStyle, global::System.String firstName, global::System.String lastName, global::System.String passwordHash, global::System.String passwordSalt, global::System.Guid rowguid, global::System.DateTime modifiedDate) { Customer customer = new Customer(); customer.CustomerID = customerID; customer.NameStyle = nameStyle; customer.FirstName = firstName; customer.LastName = lastName; customer.PasswordHash = passwordHash; customer.PasswordSalt = passwordSalt; customer.rowguid = rowguid; customer.ModifiedDate = modifiedDate; return customer; }
/// <summary> /// Customer EntitySet に新しいオブジェクトを追加するための非推奨のメソッドです。代わりに、関連付けられている ObjectSet<T> プロパティの .Add メソッドを使用してください。 /// </summary> public void AddToCustomer(Customer customer) { base.AddObject("Customer", customer); }