使用EF插入数据时,出现这个错误 查看内部错误 string str = ex.InnerException.InnerException.Message; 原来错误是 从 datetime2 数据类型到 datetime 数据类型的转换产生一个超出范围的值。 语句已终止。