コード例 #1
0
 /// <summary>
 /// 创建新的 Company 对象。
 /// </summary>
 /// <param name="companyID">CompanyID 属性的初始值。</param>
 /// <param name="companyName">CompanyName 属性的初始值。</param>
 /// <param name="companyType">CompanyType 属性的初始值。</param>
 /// <param name="property">Property 属性的初始值。</param>
 public static Company CreateCompany(global::System.Guid companyID, global::System.String companyName, global::System.String companyType, global::System.String property)
 {
     Company company = new Company();
     company.CompanyID = companyID;
     company.CompanyName = companyName;
     company.CompanyType = companyType;
     company.Property = property;
     return company;
 }
コード例 #2
0
 /// <summary>
 /// 用于向 Company集1 EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToCompany集1(Company company)
 {
     base.AddObject("Company集1", company);
 }