Click here to Skip to main content
15,897,371 members
Articles / Database Development

SqlServer & EF7: Using datetime vs datetime2 date type

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
8 Jun 2023CPOL3 min read 5.5K   37   7  
Showing problems with limited accuracy of SqlServer data type “datetime” in .NET7 EF7 environment
SqlServer data type “datetime” has accuracy and rounding problems and has been superseded with “datatime2” data type that has no such problems. But, “datetime” is still present in many legacy databases. We show how those problems in .NET Entity Framework environment can lead to confusing situations.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Serbia Serbia
Mark Pelf is the pen name of just another Software Engineer from Belgrade, Serbia.
My Blog https://markpelf.com/

Comments and Discussions