canuckconsulting
asked on
Specifying SmallDateTime as data type for Entity Framework Code First
Is there a way to force a DateTime model property to be created in SQL Server as a SmallDateTime? This is in a asp.net MVC 5 project with EF 6. The target db is SQL Server 2012.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Giannis - Perfect! Thanks.
gustav - I'm as stingy with bytes as I am money. :)
gustav - I'm as stingy with bytes as I am money. :)
And why would you? Except for saving a few bytes of storage, it has no advantage of other date types.
/gustav