Entity Framework profiler
Many times I’ve had problem with the following error when inserting objects with dates with Entity Framework :
System.Data.UpdateException An error occurred while updating the entries. See the inner exception for details.SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
Ok, it’s my faute – but to remember each one date is too much for me…
The usual method was to start SqlProfiler, monitor the database and see how the sql is constructed. However, the database being used by all developers, it was not so simple to differentiate between all sql’s.
- add reference to HibernatingRhinos.Profiler.Appender.dll
- put this
and start the exe. That will be all.
Do not forget to remove it on release version!
Easy to use, valuable information, good!
Not free …