Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IList<Employee> FindByLastName(string lastName)
- {
- IList<Employee> emps;
- var e = from emp in _ctx.Employees where emp.LastName == lastName select emp;
- emps = e.ToList<Employee>();
- return emps;
- }
- public IList<Employee> GetEmployeeById(int id, bool includeOrders)
- {
- }
- public IList<Employee> FindByLastName(string lastName)
- {
- return _ctx.Employees
- .Include("Orders")
- .Where(emp => emp.LastName == lastName)
- .ToList();
- }
- public IList<Employee> FindByLastName(string lastName)
- {
- IList<Employee> emps;
- var e = from emp in _ctx.Employees.Include("Orders") where emp.LastName == lastName select emp;
- emps = e.ToList<Employee>();
- return emps;
- }
Add Comment
Please, Sign In to add comment