If I have a Linq
to SQL
expression like this:
from subscription in dbContext.Subscriptions
where subscription.Expires > DateTime.Now
select subscription
I want this to to use the SQL Servers GETDATE()
function instead of the time of the machine running the C#
program.
The next question would be how to translate this:
DateTime.Now.AddDays(2)
to this:
DATEADD(dd, 2, GETDATE())