I have added information into the Documentation.Summary property in the graphical editor but that's not being added to the generated classes. Is there any way to do this?
I found the answer to this was to alter the T4 template (.tt file in solution). This is responsible for generating the C# class code. Find any place where you want summary information added (such as before each simple property that is written out). So for example, here is the altered code for the simple properties:
<#
if (simpleProperties.Any()) {
foreach (var edmProperty in simpleProperties) {
if (edmProperty.Documentation != null) {
#>
///<summary><#=edmProperty.Documentation.Summary #></summary>
<#
}
#>
<#=codeStringGenerator.Property(edmProperty)#>
<#
}
}
#>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With