-
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
How to add comments in ef core code first? #12132
Comments
Take a look at how HasColumnName is implemented. Basically, this API adds an annotation to the property metadata, which can then be used during migrations as part of scaffolding. Alternatively, an easier approach is to just add custom SQL to a migration directly. |
Putting this on the backlog for built-in support. See also #10258, which is about making it easier to flow information from the model into Migrations,. |
This looks like a duplicate of #15037? |
Thanks @Muppets. Closing this as a duplicate. |
I want to add some comments on field and when update database this comments can be add in db via create script, how can I do it?
The text was updated successfully, but these errors were encountered: