Skip to content

Read Description String Into Generated Xml Comments When Scaffolding MS SQL Database #33051

Closed as not planned

Description

@rhoadscm

When using a database-first approach every time a database is rescaffolded, any changes made to generated code will be overwritten. This includes Xml documentation comments.

MS SQL provides a description property for tables, relationships, and columns. It would be nice to read that property for the put that string into a /// <summary></summary> tag comment on the generated class and associated properties and relationships. This would allow a database-first approach to documentation.

Activity

  1. ErikEJ commented on Feb 10, 2024

    @ErikEJ
    Contributor

    I think that happens already, actually

  2. rhoadscm commented on Feb 10, 2024

    @rhoadscm
    Author

    I was surprised when it did not work. I'm using EF Core 6... maybe just need to update? Any settings I should know about to enable this?

    Never mind, just got it working, thanks! (Worked by default, no settings needed... user error)

  3. ErikEJ commented on Feb 10, 2024

    @ErikEJ
    Contributor

    I think it is just on by default. Maybe a CLI Update? Or try EF Core Power Tools?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions