Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ormlite does not map Datetime from SQL Server to C#?

I have tried to retrieve some data from my sql server database in a time interval. I got a field in database of DateTime2(7) and in my DAO I got Datetime as type of that field. But I get the following error: Conversion failed when converting date and/or time from character string.

like image 855
Sina Avatar asked Nov 12 '22 07:11

Sina


1 Answers

Get Ormlite source and step through. Fastest way to see whats going on and if there is a problem you can fix it fast.

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

like image 110
IvanP Avatar answered Nov 14 '22 22:11

IvanP