-1

I'm modifying CSharpDbContext.Types.tt file.

I want to use column description as comment of fields in entity class.

I'd to ask how to get description of columns from mdf file and then set to EdmProperty.Documentation in CSharpDbContext.Types.tt file.

https://i.stack.imgur.com/yOZuF.png

NhanQV
  • 81
  • 1
  • 1
  • 8

1 Answers1

0

After searching for a long day, I have found a solution

  1. Generate entity documentation from table/column description.

https://marketplace.visualstudio.com/items?itemName=mthamil.EntityDesignerDocumentationGenerator

  1. Generate comment from entity documentation.

https://stackoverflow.com/a/14149605/2608958

Community
  • 1
  • 1
NhanQV
  • 81
  • 1
  • 1
  • 8