-
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
Preiew 8: Remove non-named shared type ModelBuilder overloads #21739
Conversation
Based on API reviews we decided that we don't want to ship these overloads in 5.0. Ideally they belong in model pre-configuration, which we hope to implement in 6.0, so removing them from here now.
/// <param name="model"> The model to add the shared type to. </param> | ||
/// <param name="clrType"> The type of the entity type that should be shared. </param> | ||
/// <param name="fromDataAnnotation"> Indicates whether the configuration was specified using a data annotation. </param> | ||
public static Type AddShared([NotNull] this IConventionModel model, [NotNull] Type clrType, bool fromDataAnnotation = false) |
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.
I don't think that we decided to remove the Metadata API as well
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.
I added them back in #21741
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.
I removed them because they weren't being called by anything but the fluent API, but fine to add them back.
Based on API reviews we decided that we don't want to ship these overloads in 5.0. Ideally they belong in model pre-configuration, which we hope to implement in 6.0, so removing them from here now.