You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EF Core major guard: registering the differ by hand bypasses it and fails with MissingMethodException #91
The EF Core major guard (#55) runs in every registration entry point, and on EF Core 11 rc.2 each of them throws the guard's message (consumer probe and code analysis of the 5.5.0 candidate). The one route around it is registering the public types by hand, e.g. optionsBuilder.ReplaceService<IMigrationsModelDiffer, CustomMigrationsModelDiffer>(): the differ constructs, and the first GetDifferences fails with MissingMethodException: …IIndex.get_Properties(), loud but with nothing that names the cause. No documentation recommends registering by hand.
Fix
Call EfCoreVersionGuard.ThrowIfUnsupported() from the differ's and the Npgsql generator's constructors too, so every route ends at the same message.
Found by the 5.5.0 pre-tag review (code review of #62, core analysis).
Activity