When you use Database.SqlQuery<T> , the exception source object is included: T GetValue(System.Data.Common.DbDataReader, DateTime)
look at the entity class in this case T SRVM , you will find the IDate field of type string , which should be of type Datetime .
public string IDate { get; set; }
For
public Datetime IDate { get; set; }
source share