JonPSmith / EfCore.TestSupport

Tools for helping in unit testing applications that use Entity Framework Core
https://www.thereformedprogrammer.net/new-features-for-unit-testing-your-entity-framework-core-5-code/
Other
352 stars 53 forks source link

Support for EF Core 5 #41

Closed CrahunGit closed 3 years ago

CrahunGit commented 3 years ago

Currently tests are failing becouse seems that library tries to call internal EF Core method that are not available now. Do you plan to update the library?

JonPSmith commented 3 years ago

I assume you are talking about the CompareEfWithDb feature. Correct?

If so you can get it to work by adding EF Core 5 versions of the libraries, which will override the ones in the current EfCore.TestSupport.

See issue #37, and in particular this comment (you can use EF Core 5.0 versions - I only used previews because it was a while ago.

CrahunGit commented 3 years ago

No, its related to providers version. Seems the library get version 3.0. Manually install 5 version works as expected