LINQ to Entities no reconoce el método 'System.DateTime Parse (System.String)'
Soy un novato en Linq y la siguiente consulta sigue devolviendo el error "no reconoce System.DateTime". He probado Parse y Convert y tampoco funciona. Aquí está mi consulta:
mrcEntities context = GetContext ();
var query = from c in context.tblClients
where (c.FirstName != null || c.LastName != null)
&& c.EligibilityDate >= DateTime.Parse("10/01/2011")
&& c.EligibilityDate <= DateTime.Parse("04/30/2012")
orderby c.ClientID
select new
{
ClientID = c.ClientID,
FirstName = c.FirstName,
LastName = c.LastName,
MiddleName = c.MidName,
SSN = c.SSN,
DOB = c.DOB,
Sex = c.Gender,
Ethnic = c.EthnicCode
};
clientRowCnt = query.Count();
Cualquier ayuda sería apreciada.