0

Trabajo con EF Core 3.1 Necesito el equivalente de DbFunctions.TruncateTime en EF Core 3.1

Código de EF6

(filter.HasFechaHasta && DbFunctions.TruncateTime(sc.FechaEmision) <= filter.FechaHasta)

1 respuesta 1

1

Entiendo que en EF Core puede usar el .Date del DateTime

(filter.HasFechaHasta && sc.FechaEmision.Date <= filter.FechaHasta)

para acceder a la fecha sin su hora

DbFunctions.TruncateTime LINQ equivalent in EF CORE

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.