Hello
Olivier,
If I am understanding your scenario correctly, you wish to dynamically construct a LINQ query using string values to retrieve the required records from the database. If this indeed is the case you can make use of Telerik Data Access in combination with Dynamic LINQ as shown in this documentation article.
In case you also need to dynamically specify what object should the query retrieve you can combine the Artificial API together with Dynamic LINQ. For example, consider a scenario where you have a persistent type Car in the EntitiesModel namespace. The Car type has properties such as CarID, Make, Model, TagNumber, etc. The following code snippet would retrieve the required information specified using string parameters:
For more information regarding the general Dynamic LINQ syntax you can refer to
this blog post.
I hope this helps. In case you have additional questions do not hesitate to get back to us.
Regards,
Kristian Nikolov
Telerik
OpenAccess ORM is now
Telerik Data Access. For more information on the new names, please, check out the
Telerik Product Map.