In Entity framework I could build a where clause as a string. For example;
var whereClause = "ID > 0 and !Inactive";
pList.AddRange(MyData.Set<T>().Where(whereClause).ReduceCasts().ToList());
I have updated to EFCore and the same statement now gives me the error;
Cannot convert from 'string' to 'System.Func<T, bool>'
Has EFCore not implemented this functionality or have I missed an addon that allows strings to be used in a where statement? I also have the same issue with the .OrderBy(), I assume the answer will apply here as well.
In Entity framework I could build a where clause as a string. For example;
var whereClause = "ID > 0 and !Inactive";
pList.AddRange(MyData.Set<T>().Where(whereClause).ReduceCasts().ToList());
I have updated to EFCore and the same statement now gives me the error;
Cannot convert from 'string' to 'System.Func<T, bool>'
Has EFCore not implemented this functionality or have I missed an addon that allows strings to be used in a where statement? I also have the same issue with the .OrderBy(), I assume the answer will apply here as well.
I was using the original Dynamic Linq package, I upgraded to the latest https://www.nuget.org/packages/System.Linq.Dynamic.Core