Beispiel #1
0
 public virtual void AddEmployee(EmployeeEFEntity emp)
 {
     if (!emp.MyParkingAreas.Contains(this))
     {
         emp.MyParkingAreas.Add(this);
     }
     if (!this.MyEmployees.Contains(emp))
     {
         this.MyEmployees.Add(emp);
     }
 }
Beispiel #2
0
 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;
 }