I'm returning a dataset using SubSonic.SqlQuery of two joined objects, but I can't seem to figure out how to perform this where clause:
Month(SubmittedOn)=Month(GETDATE()) AND Year(SubmittedOn)=Year(GETDATE())
I tried to do it like this, but it did not like the .IsEqualTo(string):
.Where("Month(SubmittedOn)").IsEqualTo("Month(getdate()")