I'm using Entity Framework 4 with MySql.Data.MySqlClient provider.
May I know where is CurrentDateTime() listed in http://msdn.microsoft.com/en-us/library/bb738563(v=vs.100).aspx?
I've tried namespace System.Data.Metadata.Edm and System.Data.Objects but with no luck...
UPDATE: I've just found out that I can use DateTime.Now instead of CurrentDateTime() for the DB time. It will be translated into NOW() in the query.
The problem now is that EntityFunctions.AddDays() doesn't work. It's not translated into the correct ADDDATE() but AddDays(). Does that mean Canonical Functions are not supported by MySql? (MySql connector net 6.5.4)