Can i add linq compiler to my project?

I would like to allow some of our business analysts to write in linq instead of SQL, where applicable. The corporation will never accept allowing linqpad to be installed, and where will I start by exploring how to resolve simple linq queries or expressions in a vs2008 project?

Is there some type of eval () function for .net that compiles and runs the linq expression?

+3
source share
4 answers

Check out this tutorial on dynamic code execution. Its pretty full, and you can simply limit the use of the Linq namespace and your DALs if you wish. You can also add checks to make sure that they do not (for example) perform more than one statement, as well as advanced data visualization.

+3
source

I assume you mean javascript style eval? Unfortunately, there is no eval style function in BCL, C #, or VB that would give the behavior you are looking for.

+2
source
+1

, . , DSL+. WHERE, Predicate XML, . - SQL, LINQ Dynamic LINQ, LINQ- (Where, OrderBy, Select, ). LINQ (.. ), . LINQ, , - .

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/1714980/


All Articles