I am trying to map a TimeSpan Code First property to SQL server. Code First seems to be creating it as a Time(7) in SQL. However TimeSpan in .Net can handle longer periods t
First of all, MVC has nothing to do with this issue. It is entirely related to EF Code First and SQL Server so it's a DAL matter.
One solution could be to provide a custom column type in your entity configuration, like this:
modelBuilder
.Entity()
.Property(c => c.MyTimeSpan)
.HasColumnType("whatever sql type you want to use");