Use textual representations of LINQ expressions

In my project, I use many LINQ expressions, and I would allow users to enter their own queries by typing linq query in text input

So, is it possible to create a LINQ expression from text containing this? And besides, is it possible to get the text equivalent of a linq request? (for example, from FOO in the bar, select foo)

thanks in advance

+3
source share
4 answers

You can try NLinq : http://nlinq.codeplex.com

+5
source

, ( . , , , , - linq, . , , , ( AppDomains), .

Entity Framework, , , ESQL, http://innocraft.spaces.live.com/blog/cns!919A8CAC315ADF82!239.entry. , Entity Framework .

+2

Is it possible that you can provide your users with a copy of LinqPad (which is free), and they can create their own queries and also see the equivalent of SQL text?

LinqPad can be found here

0
source

You can also consider Dynamic LINQ. It is still linked to VS2010 (anyway in the Samples folder), although it is not very well documented. Here's a brief introduction:

http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

0
source

Source: https://habr.com/ru/post/1782612/


All Articles