Page 1 of 1

Influence Linq to Entity Frameork SQL generation

Posted: Wed 22 Oct 2008 14:46
by markaw
Hi,

Is there a way to influence a SQL that the OraDirect.NET generates while working with EntityFramowrk and Linq?

Lets say I would like to filter the all the numbers and return +1 while selecting.

In other words if normally this sql statement would by generated
"select num from table" I wold like to have "select num + 1 from table".

Can it by done?

Regards,
Mak

Posted: Fri 24 Oct 2008 12:10
by AndreyR
There is no way to influence the generated SQL. But you can modify the LINQ query to get the appropriate result.