コード例 #1
0
ファイル: EmployeeManagement.cs プロジェクト: livinghood/syst
        /// <summary>
        /// Create a new EmployeePlacement
        /// </summary>
        /// <param name="employeeId"></param>
        /// <param name="departmentId"></param>
        /// <param name="allocate"></param>
        public void CreateEmployeePlacement(long employeeId, string departmentId, decimal allocate)
        {
            EmployeePlacement newEmployeePlacement = new EmployeePlacement {
                EmployeeID = employeeId, DepartmentID = departmentId, EmployeeAllocate = allocate
            };

            db.EmployeePlacement.Add(newEmployeePlacement);
            db.SaveChanges();
        }
コード例 #2
0
ファイル: EmployeeManagement.cs プロジェクト: livinghood/syst
 public void DeleteEmployeePlacement(EmployeePlacement employeePlacement)
 {
     db.EmployeePlacement.Remove(employeePlacement);
     db.SaveChanges();
 }