1
Hello, I’m using a search method with Entity framework and oracle, and found a problem with dates.
In my search I use the following logic:
Find(x => x.Data_Intencao >= Periodo.Date, c => c.SubOrigem_EF);
But in my Data_Intencao
She’s running the search with the date and time.
If I put Data_Intencao.Date
the following error is presented:
'The specified type Member 'Date' is not supported in LINQ to Entities. Only initializers, Entity Members, and Entity navigation properties are supported.'
https://answall.com/questions/14857/erro-ao-passar-adddays-em-express%C3%A3o-lambda/14862#14862 Read
– novic
other link https://answall.com/questions/176823/filtro-para-os-pr%C3%B3ximos-90-dias-Linq-Asp-net-mvc/176832#176832
– novic
in its specific case: https://answall.com/a/176832/54880
– novic