-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Code cleanup for EFCore #36562
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
Code cleanup for EFCore #36562
Conversation
0f23b7e
to
3e9ca2d
Compare
src/EFCore/Metadata/Conventions/NonNullableReferencePropertyConvention.cs
Show resolved
Hide resolved
src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.Expressions.cs
Show resolved
Hide resolved
src/EFCore/Query/Internal/QueryableMethodNormalizingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR performs a comprehensive code cleanup across Entity Framework Core (EFCore) shared utilities and core components. The changes modernize the codebase by utilizing newer C# language features, improving code consistency, and enhancing readability.
Key Changes:
- Modernized collection initializations using collection expressions (
[]
syntax) - Converted to file-scoped namespaces throughout shared utilities
- Applied field-backed property patterns using the
field
contextual keyword - Simplified LINQ expressions and method calls by removing unnecessary multi-line formatting
Reviewed Changes
Copilot reviewed 193 out of 201 changed files in this pull request and generated 3 comments.
:
File | Description |
---|---|
src/Shared/*.cs | Modernized shared utilities with file-scoped namespaces, collection expressions, and field-backed properties |
src/EFCore/Storage/*.cs | Updated value converter classes to use field-backed properties and improved API documentation |
src/EFCore/Query/*.cs | Simplified LINQ expressions and applied modern C# patterns |
src/EFCore/Metadata/*.cs | Extensive modernization of metadata classes with field-backed properties and improved code organization |
No description provided.