How to transform LINQ filter expression to SQL Query? -


i'm wondering how can transform filterexpression in linq sql clause.

{it => (iif((it.datasettitle == null), null, convert("ref".contains(it.datasettitle))) == convert(true))} 

are there convenient ways of changing above expression sql clause?

generally speaking, wouldn't directly. underlying object implements iqueryable you're performing linq operation on handle work. since tagged odata, presume you're using wcf data services. in context object, can declare dbset typed properties. dbset implements iqueryable, , you.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -