Discover the compiled model automatically · Issue #24893 · dotnet/efcore
When it's in the same assembly as the context type, by using an assembly-level attribute that specifies the context type and compiled model type.