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 DBQueries #11

Closed Knappert closed 5 years ago

Knappert commented 5 years ago

Hello, please insert Support for DBQuery in ComporeEfSql / CompareEfWithDb. Thanks. Carsten

Knappert commented 5 years ago

At the moment we solve the problem via "IgnoreTheseErrors" and a long list of message "NOT IN DATABASE: ...

JonPSmith commented 5 years ago

Good idea, and something I want to do, but I am very busy on a contract at the moment so I won't get around to this for a while.

I'll leave this item open.

Knappert commented 5 years ago

Thanks Jon for your quick answer Have a nice day

JonPSmith commented 5 years ago

Hi @Knappert,

I have released version 1.5.2 of the EfCore.TestSupport library. Now it outputs one warning saying that EfSchemaCompare does not check DbQuery types. That should cut down on your "IgnoreTheseErrors" list.

I can't check DbQuery types because I rely on EF Core's scaffolder to read the existing database, and that doesn't handle DbQuery types. Not sure there is a solution, but the warning is there to ensure people understand what has been checked.