Thursday, April 26, 2018

Searching using EF

I have entities in my database that I want to return all objects into a list that meet criteria determines by the user. Lets say theres 10 properties I want the user to be able to put criteria in for... I obviously don't write all possible permutations of those search criteria... How do I use EF to pass a partially completed object and find all entities who have matching properties? If some of this properties are ints and bools, I would imagine I would have to create a version of that class and change them to int? and bool? so it doesn't look for 0's and Falses if no criteria is put in the search field?

Searching using EF Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team