-
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
Draft for SQL Server identity fluent API in model snapshot #21210
Conversation
@@ -524,6 +524,8 @@ protected virtual void GeneratePropertyAnnotations([NotNull] IProperty property, | |||
|
|||
var annotations = property.GetAnnotations().ToList(); | |||
|
|||
// First, handle built-in annotations |
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.
// First, handle built-in annotations | |
// First, handle non-provider-specific annotations |
Yes, we should do this. Otherwise it's looking good (though more elaborate than I imagined it) We should also consider using |
+1 Looks good. Just need a way of generating by-convention annotations in the snapshot. Maybe a bool in HandleAnnotations()? |
I actually thought of just exposing two APIs - one which removes annotations which are by convention (called when scaffolding but not when generating the snapshot), and one which removes annotations for which a fluent API exists (and returns the fluent API calls).
Did I over-engineer? Any ideas for simplifying?
Will do this too. |
My initial design was just passing the string builder to the provider, but your way is better. |
Superceded by #21329 |
@bricelam this is some quick draft work on #16922:
If this looks like a good direction, let me know and I'll continue.