public Employee() { Manager = new SpEntityLookup <Employee>(); Department = new SpEntityLookup <Department>(); string query = new SpEntitySet <Employee>().Where(employee => employee.Position == EmployeePosition.Manager).Caml(true, true); Managers = new SpEntitySet <Employee>(query); }
public ProjectTask() { ProjectLookup = new SpEntityLookup <Project>(); }
//private SpEntitySet<Employee> _managers; public Employee() { ManagerLookup = new SpEntityLookupCollection <Employee>(); DepartmentLookup = new SpEntityLookup <Department>(); //_managers = new SpEntitySet<Employee>(); }