我正尝试在Linq中使用DateTime.Compare:where DateTime.Compare(Convert.ToDateTime(ktab.KTABTOM), DateTime.Now) < 1{}LINQ to Entities does not recognize the method 'System.DateTimemethod, and this method cannot be translated into a
== DateTime.Now.Date).FirstOrDefault();The specified type member 'Date' is not supported in LINQOnly initializers, entity members, and entity navigation properties are supportedvar currentDate = DateTime.Now;
VisitorLog
List<DateTime> dateTimeList = new List<DateTime>(); Console.WriteLine("date list List:" + dateInList.ToString("ddMMyyyyhh:mm:ss:fffz") + " - VS - desired d