modelBuilder.Entity<SomeEntity>().HasQueryFilter(e => e.created_at.Date == DateTime.Today);
produces this error:
InvalidCastException: Unable to cast object of type 'System.DateTime' to type 'System.Linq.Expressions.LambdaExpression'.
The created_at property is typed to DateTime.
What am I missing?
Created_at
is but it its a regular date Mostly likely your missing beta version of .NET-Core. if you upgrade to 2.1 this should be fixed.