Posts

Showing posts from December 7, 2018

Creating dynamic queries with entity framework

Image
up vote 35 down vote favorite 21 I would like to know what is the best way of creating dynamic queries with entity framework and linq. I want to create a service that has many parameters for sorting and filtering (over 50). I will be getting object from gui where these will be filled out... and query will be executed from a single service method. I looked around And I saw that I could dynamically create a string that can be executed at the end of my method. I don't like this way very much. Is there a better way to do this? Preferably type safe with compile check? c# linq entity-framework entity-framework-4 share | improve this question edited Apr 4 '11 at 16:24