Hello all. I have a question regarding the code generation.
We use the "Update From DataBase" method to create/update an entity model. Afterwards the generated C# code is generally fine and works well. There is one small annoying thing: The columns have for instance comments like this "something >= someting else". The generated XML comments contain these special characters like '<', '>', etc. They lead to a warning CS1570.
Is there any feature like 'escape special characters' or so which allows to prevent this warning? Of course I may change the column comments, replace the characters manually or switch compiler warnings of. However, we'd like to see all comments as they are and get rid of the warnings. Any ideas? Thanks in advance.
Regards,
Mike
Corrupted XML comments through '<', '>' and other characters in DB comments
-
- Posts: 3
- Joined: Fri 08 Sep 2017 11:53
Re: Corrupted XML comments through '<', '>' and other characters in DB comments
Thank you for your report. We will investigate the case and notify you about the result.
Re: Corrupted XML comments through '<', '>' and other characters in DB comments
Thank you for your report. We have reproduced the issue and will notify you when it is fixed.
As workaround you can suppress this warning in Visual Studio:
- Right-click your project, then click Properties, and then switch to the Build tab
- Find the "Errors and warnings" section
- Add the warning number 1570 in the "Suppress warnings" text box
As workaround you can suppress this warning in Visual Studio:
- Right-click your project, then click Properties, and then switch to the Build tab
- Find the "Errors and warnings" section
- Add the warning number 1570 in the "Suppress warnings" text box
-
- Posts: 3
- Joined: Fri 08 Sep 2017 11:53
Re: Corrupted XML comments through '<', '>' and other characters in DB comments
Thanks for your support
Re: Corrupted XML comments through '<', '>' and other characters in DB comments
The bug with escaping invalid XML characters in the comments generated by templates is fixed: viewtopic.php?f=32&t=36131.