我正在使用实体框架代码。使用LINQ to Entity我想根据DateTime值获取记录。这里是我当前的代码: /// <summary>
/// A method to check and see if the Parsed Game already exists on the
/// database. If Yes, then True is returned, otherwise F
当我有一个闰年在我的数据库(例如:2012年2月29日)。该EntityFunctions.CreateDateTime函数抛出System.Data.SqlClient.SqlException: Conversion failed when converting date and/or time from character string. 我的代码在我的asp.net MVC(C#)应用程序