daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 62 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. Entity Framework generating sql queries without where clauses
  2. public List<Company> Query(Func<Company, bool> expression)
  3.     {
  4.         return MyDbContext.Instance().Company.Where(expression).ToList();
  5.     }
  6.    
  7. public List<Company> GetLikeName(string textToSearch)
  8.     {
  9.         return MyDbContext.Instance().Company.Where(a => a.Contains(textToSearch)).ToList();
  10.     }
  11.    
  12. public List<Company> Query(Expression<Func<Company, bool>> expression)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top