Skip to content
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

Closed
xBoo opened this issue May 24, 2018 · 4 comments
Closed

How to add comments in ef core code first? #12132

xBoo opened this issue May 24, 2018 · 4 comments

Comments

@xBoo
Copy link

xBoo commented May 24, 2018

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?

@anpete
Copy link
Contributor

anpete commented May 24, 2018

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.

@ajcvickers
Copy link
Contributor

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,.

@ajcvickers ajcvickers added this to the Backlog milestone May 25, 2018
@ajcvickers ajcvickers added type-enhancement help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. labels May 25, 2018
@Muppets
Copy link
Contributor

Muppets commented May 16, 2019

This looks like a duplicate of #15037?

@ajcvickers
Copy link
Contributor

Thanks @Muppets. Closing this as a duplicate.

@ajcvickers ajcvickers added closed-duplicate and removed help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement labels May 17, 2019
@ajcvickers ajcvickers removed this from the Backlog milestone May 17, 2019
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants