-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add a compiled slim model generator #24612
Conversation
@dotnet/efteam This is now ready for a full review |
Ping. We branch for preview5 tomorrow. |
src/EFCore.InMemory/Design/Internal/InMemoryCSharpSlimAnnotationCodeGenerator.cs
Outdated
Show resolved
Hide resolved
src/EFCore.SqlServer/Design/Internal/SqlServerCSharpRuntimeAnnotationCodeGenerator.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Design/Scaffolding/Internal/CSharpRuntimeModelCodeGenerator.cs
Show resolved
Hide resolved
Remove more design-time metadata from runtime model Fix some configuration loss when reattaching entity types Add missing SqlServer Metadata methods Add more tests
How much breaking changes rule applies to generated code here? Can we change the generated code in future release in breaking way (i.e. code generated earlier wouldn't compile without regenerating). This differs bit from migrations where old migrations need to continue working. |
@smitpatel The compiled models need to be regenerated on every major or minor version upgrade. #24906 adds a warning for this. |
However users might have code in partial classes using the same API, so the general breaking changes policy applies to it. |
Part of #1906
The indexer properties now require a setter
The DbFunction names are now more readable if generic types are involved
Add designTime parameter to IRelationalAnnotationProvider
Remove more design-time metadata from runtime model
Fix some configuration loss when reattaching entity types
Add missing SqlServer Metadata methods