Пример #1
0
 public CompanyViewModel(Company company)
 {
     if (company == null)
     {
         throw new ArgumentNullException("company");
     }
     this.Model = 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);
 }
Пример #3
0
 /// <summary>
 /// Create a new Company object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="sourceId">Initial value of the SourceId property.</param>
 public static Company CreateCompany(global::System.Guid id, global::System.String name, global::System.String code, global::System.Int32 sourceId)
 {
     Company company = new Company();
     company.Id = id;
     company.Name = name;
     company.Code = code;
     company.SourceId = sourceId;
     return company;
 }