Click here to Skip to main content
15,878,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi
excuse me i can not type English very good
i want to use entity in run time
for example

C#
var q=db.news.where(here fill in run time ).tolist();
Posted
Comments
Sergey Alexandrovich Kryukov 15-Jul-14 4:29am    
The problem is not your English (probably you are quite able to express yourself the was we would understand), but the problem itself. What prevents you from making a content of the "where" expression during runtime? At least you could give us some samples of the code in brackets already "filled in" manually and explain how can it be filled in in different ways, and why you cannot create this expression during runtime...
—SA

for example i have a query like this

C#
var q=db.news.where(p=>p.id==3).tolist();


and another time i shuold have a query like this
C#
var q=db.news.where(p=>p.id==3 || p.id=10).tolist();


and ...

i wanna use run time in condition

or another sample
i wanna get condition from user
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900