I'm asking if is possible in entity Framework to do something like this :
Dim criteria As ' Some Type ?? '
If option1 then criteria= ".vl1=5"
If option2 then criteria = criteria and ".vl2>3"
If option3 then criteria = criteria or "vl2=0"
If option4 then criteria = criteria and "name='name1'"
Dim query = context.Myobjects.Where(Criteria).ToList()
I want to know that is this possible ?