Beispiel #1
0
 /// <summary>
 /// Create a new employee object.
 /// </summary>
 /// <param name="emp_id">Initial value of the emp_id property.</param>
 /// <param name="fname">Initial value of the fname property.</param>
 /// <param name="lname">Initial value of the lname property.</param>
 /// <param name="job_id">Initial value of the job_id property.</param>
 /// <param name="pub_id">Initial value of the pub_id property.</param>
 /// <param name="hire_date">Initial value of the hire_date property.</param>
 public static employee Createemployee(global::System.String emp_id, global::System.String fname, global::System.String lname, global::System.Int16 job_id, global::System.String pub_id, global::System.DateTime hire_date)
 {
     employee employee = new employee();
     employee.emp_id = emp_id;
     employee.fname = fname;
     employee.lname = lname;
     employee.job_id = job_id;
     employee.pub_id = pub_id;
     employee.hire_date = hire_date;
     return employee;
 }
Beispiel #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);
 }