コード例 #1
0
 /// <summary>
 /// Create a new Company object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="active">Initial value of the Active property.</param>
 public static Company CreateCompany(global::System.Guid id, global::System.String description, global::System.DateTime dateCreated, global::System.Boolean active)
 {
     Company company = new Company();
     company.Id = id;
     company.Description = description;
     company.DateCreated = dateCreated;
     company.Active = active;
     return company;
 }
コード例 #2
0
ファイル: Context.cs プロジェクト: sunilbulusu/DealerSoftware
 /// <summary>
 /// Deprecated Method for adding a new object to the Company EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCompany(Company company)
 {
     base.AddObject("Company", company);
 }