Hello everyone I have one query I'm running migration for adding a new table and column it's working. I have created a column createdon with DateTime datatype. Now we have a check table here datetime2 type store.Please let me know why it is datetime2 store.
Loading
Sachin SinghPosted May 26, 2022, 6:39 AM
System.DateTimemaps directly to SQL Serverdatetime2and is the Microsoft recommended datatype for storage of aSystem.DateTimein SQL Server.Also worth noting that a
datetime2(7)takes one less byte of space than adatetimeand offers increased precision.RohanPosted May 26, 2022, 4:48 AM
RohanPosted May 25, 2022, 8:30 AM
Sachin Singh, I do not understand.