Ormlite not matching datetime from SQL Server to C #?

I tried to get some data from my sql server database over a period of time. I got the field in the DateTime2 (7) database, and in my DAO I got Datetime as the type of this field. But I get the following error: Conversion error while converting date and / or time from character string.

+5
source share
1 answer

Get the Ormlite source and run it. The fastest way to see what happens, and if there is a problem, you can quickly fix it.

https://github.com/ServiceStack/ServiceStack.OrmLite

+1
source

All Articles