Use Expression Trees to Build Dynamic Queries

2 posts, 0 answers
  1. Bob
    Bob avatar
    46 posts
    Member since:
    Apr 2012

    Posted 24 Sep 2014 Link to this post

    Hello,

    Are the LINQ Expression Tree concepts shown in the following MS documentation supported within Data Access?
    http://msdn.microsoft.com/en-us/library/bb882637.aspx

    It seems the following article is showing the use of LINQ Expressions with OpenAccess, is this still a recommended practice for dynamic filtering?
    http://blogs.telerik.com/openaccessteam/posts/10-04-16/dynamic-filter-expressions-in-an-openaccess-linq-query.aspx

    Thank You
    Bob Baldwin
    Trabon
    816-276-2512
  2. Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 25 Sep 2014 Link to this post

    Hello Bob,

    yes, this is still the recommended approach. In the end, all that we need is a LINQ expression tree, and we do not care to much who is building it: The compiler, the user or dynamic LINQ. 
    Please note, that not all methods that are available in the CLR will be pushable to the database (e.g. string::LastIndexOf).

    Regards,
    Thomas
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  3. DevCraft banner
Back to Top