DateDiff in LINQ
var result = from i in myTable
select SqlMethods.DateDiffMonth(i.DateStart, i.DateEnd);
This will generate sql query with DATEDIFF
function
var result = from i in myTable
select SqlMethods.DateDiffMonth(i.DateStart, i.DateEnd);
This will generate sql query with DATEDIFF
function