SELECT COUNT(*)
FROM [vwTasks] AS [item]
WHERE ((([item].[Deadline] < '2019-04-15T00:00:00.0000000')Conversion failed when converting date and/or time from character string
This can happen when Entity Framework Core generates datetime2-style literals for a column that is datetime.
- EF Core 2.0: default all date fields to use datetime2 — Stack Overflow
- Data types — EF Core relational modelling docs