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(); }
/// <summary> /// Deprecated Method for adding a new object to the Employee EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmployee(Employee employee) { base.AddObject("Employee", employee); }
/// <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; }