big issue in converting string to datetime using linq-to-entities

前端 未结 4 1001
傲寒
傲寒 2020-11-29 10:38

How can I convert the string to datetime using linq to entities ....

I have got the below query, where the visit_date column datatype is string...

4条回答
  •  生来不讨喜
    2020-11-29 11:06

    Convert.ToDatetime is supported by Linq2SQL. The only supported method of Linq to entities are these: http://msdn.microsoft.com/en-us/library/bb738681.aspx

    about your problem ... try to convert startdate and enddate in string and compare the string value in linq expression.

提交回复
热议问题