Draft for SQL Server identity fluent API in model snapshot#21210
Draft for SQL Server identity fluent API in model snapshot#21210
Conversation
|
|
||
| var annotations = property.GetAnnotations().ToList(); | ||
|
|
||
| // First, handle built-in annotations |
There was a problem hiding this comment.
| // 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.