System.DateTime maps to datetime2(7) in sql server wich is not optimal for storing date-only (without time) information. SQL'92 has special Date type, for storing date-only. It could be implemented by adding [DateOnly] or [DateWithoutTime] attribute for fields. |
Hello Thanks for idea. If the feature is popular on dataobjects.uservoice.com we'll implement it in one of versions. Update: We added this to the the feature list to implement. I'm not sure in which version it will be included for now, probably in one of 5.1.0 Betas |