We've seen some very useful methods of implementing EF4 Repository and Unit of Work pattern (Reference 1, Reference 2)
All the examples I see use methods requiring the use of LINQ Expression Syntax, e.g.:
IEnumerable<T> Query(Expression<Func<T, bool>> filter)
var employees = employeeRepository.Query(emp => emp.Username == userName);
But I want to use LINQ Query Expression syntax, e.g.:
from emp in context.Employees select emp where emp.Username == userName;
Is there a way to enjoy the benefits of a repository and UoW whilst being able to use LINQ Query Expression syntax in my repository methods?
Richard