public virtual void AddEmployee(EmployeeEFEntity emp) { if (!emp.MyParkingAreas.Contains(this)) { emp.MyParkingAreas.Add(this); } if (!this.MyEmployees.Contains(emp)) { this.MyEmployees.Add(emp); } }
public virtual void RemoveEmployee(EmployeeEFEntity emp) { if (emp.MyParkingAreas.Contains(this)) { emp.MyParkingAreas.Remove(this); } if (this.MyEmployees.Contains(emp)) { this.MyEmployees.Remove(emp); } }
public SuperWrapper(DepartmentEFEntity dept, EmployeeEFEntity emp) { this.DeptProxy = dept; this.EmpProxy = emp; }