コード例 #1
0
 /// <summary>
 /// Create a new Employee object.
 /// </summary>
 /// <param name="empNo">Initial value of the EmpNo property.</param>
 /// <param name="empName">Initial value of the EmpName property.</param>
 /// <param name="salary">Initial value of the Salary property.</param>
 /// <param name="deptNo">Initial value of the DeptNo property.</param>
 public static Employee CreateEmployee(global::System.Int32 empNo, global::System.String empName, global::System.Int32 salary, global::System.Int32 deptNo)
 {
     Employee employee = new Employee();
     employee.EmpNo = empNo;
     employee.EmpName = empName;
     employee.Salary = salary;
     employee.DeptNo = deptNo;
     return employee;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Employees EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEmployees(Employee employee)
 {
     base.AddObject("Employees", employee);
 }