-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Break apart methods in the compiled model #31370
Comments
Note for triage: |
Think you reply. Triage is some tables in one dbcontext and other some tables in another dbconext ? |
In EF Core 7, my compiled model file was 13,880 lines long, and turned into 453,786 after updating to EF Core 8. The new CreateRelationalModel function, which is over 430,000 lines long, seems to be the culprit, since the Initialize function seems to be similar to the one in EF Core 7. |
As a workaround you can remove the CreateRelationalModel method. EF will then fallback to 7.0 behavior and create it at runtime. |
@AndriySvyryd We should doc this workaround in the breaking changes. |
Doced in dotnet/EntityFramework.Docs#4593 |
Database have about 1350 tables and 35650 fields.
I uploaded compiled models library(EFCoreCompiledModels.zip),can reference it and compile,will show CS0240 error
EFCoreCompiledModels.zip
EF Core version:
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .8.0.0-preview.6.23329.4)
Operating system:
IDE: (e.g. Visual Studio 2022 17.4)
The text was updated successfully, but these errors were encountered: