public void AddValue(decimal idSchool, decimal idEmployeeType, string name, decimal gender, string address, string education, decimal rank, decimal idSubject, decimal idDistrict)
 {
     CheckCapacity();
     Employee emp = new Employee();
     emp.idEmployee = FreeIndex;
     emp.idSchool = idSchool;
     emp.idEmployeeType = idEmployeeType;
     emp.nameEmployee = name;
     emp.gender = gender;
     emp.address = address;
     emp.rank = rank;
     emp.education = education;
     emp.idSubject = idSubject;
     emp.idDistrict = idDistrict;
     EntitiesHolder.Entities.Employee.AddObject(emp);
     EntitiesHolder.Entities.SaveChanges();
 }
Пример #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);
 }
Пример #3
0
 /// <summary>
 /// Create a new Employee object.
 /// </summary>
 /// <param name="idEmployee">Initial value of the idEmployee property.</param>
 public static Employee CreateEmployee(global::System.Decimal idEmployee)
 {
     Employee employee = new Employee();
     employee.idEmployee = idEmployee;
     return employee;
 }