Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Entity Framework generating sql queries without where clauses
- public List<Company> Query(Func<Company, bool> expression)
- {
- return MyDbContext.Instance().Company.Where(expression).ToList();
- }
- public List<Company> GetLikeName(string textToSearch)
- {
- return MyDbContext.Instance().Company.Where(a => a.Contains(textToSearch)).ToList();
- }
- public List<Company> Query(Expression<Func<Company, bool>> expression)
Add Comment
Please, Sign In to add comment