Closed outworkAnton closed 3 years ago
We no longer support EF Core 2.x as this library is now targeting EF Core 5. Closing this issue.
I think the issue can be opened again. I have an identical problem with EF Core 5 and there is probably no way to create DbSets generically.
@huysentruitw Do you know of any workaround to achieve this?
Version 2.3 of the NuGet package (currently building) should fix this issue.
Also, don't forget to star this repository 🤩
I've an base abstract generic class that implements initial logic and configuration of inherited test classes. But can't create DbSetMock with runtime error when test runs "System.InvalidCastException : Unable to cast object of type System.Linq.Expressions.InstanceMethodCallExpression0 to type System.Linq.Expressions.MemberExpression."