コード例 #1
0
 /// <summary>
 /// Create a new Company object.
 /// </summary>
 /// <param name="companyID">Initial value of the CompanyID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="companyAddress">Initial value of the CompanyAddress property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="province">Initial value of the Province property.</param>
 /// <param name="postalCode">Initial value of the PostalCode property.</param>
 /// <param name="phoneNumber">Initial value of the PhoneNumber property.</param>
 /// <param name="flagged">Initial value of the Flagged property.</param>
 public static Company CreateCompany(global::System.Int32 companyID, global::System.String name, global::System.String companyAddress, global::System.String city, global::System.String province, global::System.String postalCode, global::System.String phoneNumber, global::System.Boolean flagged)
 {
     Company company = new Company();
     company.CompanyID = companyID;
     company.Name = name;
     company.CompanyAddress = companyAddress;
     company.City = city;
     company.Province = province;
     company.PostalCode = postalCode;
     company.PhoneNumber = phoneNumber;
     company.Flagged = flagged;
     return company;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Companies EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCompanies(Company company)
 {
     base.AddObject("Companies", company);
 }