コード例 #1
0
 /// <summary>
 /// Create a new Employee object.
 /// </summary>
 /// <param name="eID">Initial value of the EID property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="adress">Initial value of the Adress property.</param>
 /// <param name="zipCode">Initial value of the ZipCode property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="idNumber">Initial value of the IdNumber property.</param>
 /// <param name="manager">Initial value of the Manager property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 public static Employee CreateEmployee(global::System.Int32 eID, global::System.String firstName, global::System.String lastName, global::System.String adress, global::System.String zipCode, global::System.String city, global::System.String idNumber, global::System.Boolean manager, global::System.String email)
 {
     Employee employee = new Employee();
     employee.EID = eID;
     employee.FirstName = firstName;
     employee.LastName = lastName;
     employee.Adress = adress;
     employee.ZipCode = zipCode;
     employee.City = city;
     employee.IdNumber = idNumber;
     employee.Manager = manager;
     employee.Email = email;
     return employee;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Employee EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEmployee(Employee employee)
 {
     base.AddObject("Employee", employee);
 }