-
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
Move IRelationalModel extension methods to the interfaces #24205
Conversation
4b60e6f
to
9b577a4
Compare
{ | ||
model.ModelDependencies = Dependencies.ModelDependencies; |
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.
@roji Now I remember why the code was factored that way. I needed an atomic SetModelDependencies
as this could be called from multiple threads and model initialization cannot be made reliably idempotent.
Suggestions?
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.
Changed this to block concurrent threads until initialization is finished and also store the result in the model (needed for #8258).
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.
Sorry, missed this mention... looks OK to me.
@@ -55,7 +55,7 @@ public sealed record ModelRuntimeInitializerDependencies | |||
/// </summary> | |||
[EntityFrameworkInternal] | |||
public ModelRuntimeInitializerDependencies( | |||
[NotNull] SingletonModelDependencies singletonModelDependencies, | |||
[NotNull] RuntimeModelDependencies singletonModelDependencies, |
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.
variable name. Also property name below?
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.
Rename SingletonModelDependencies to RuntimeModelDependencies Rename GetEntityTypes(Type) to FindEntityTypes(Type) Rename FindPrincipals() to GetPrincipals() Remove IModelCreationDependencies Fixes #19213
0e77ee3
to
04bdaa3
Compare
Rename
SingletonModelDependencies
toRuntimeModelDependencies
Rename
GetEntityTypes(Type)
toFindEntityTypes(Type)
Rename
FindPrincipals()
toGetPrincipals()
Remove
IModelCreationDependencies
Fixes #19213