How I can find datediff in month using LINQ?
var result = from i in myTable
select SqlMethods.DateDiffMonth(i.DateStart, i.DateEnd);
This will generate sql query with DATEDIFF
function
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With