Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Time Datatype in SQL Server 2008 R2 supports Entityframework with MVC4

I am using ASP.NET MVC4 with Entityframework.

Does Entityframework supports new Time datatype of SQL.

Thank you

like image 845
Hari Gillala Avatar asked Jan 05 '12 11:01

Hari Gillala


1 Answers

Yes it is supported. If you have table which uses Time SQL type it will be recognized as EDM.Time and generated entity will use TimeSpan as property type. In the same way it works with code first approach. If you map property with TimeSpan type the table will contain SQL Time column.

like image 86
Ladislav Mrnka Avatar answered Nov 03 '22 01:11

Ladislav Mrnka