Corrupted XML comments through '<', '>' and other characters in DB comments

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Mike@Devart
Posts: 3
Joined: Fri 08 Sep 2017 11:53

Corrupted XML comments through '<', '>' and other characters in DB comments

Post by Mike@Devart » Fri 08 Sep 2017 12:03

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

SecureGen
Devart Team
Posts: 133
Joined: Thu 08 Sep 2005 06:27

Re: Corrupted XML comments through '<', '>' and other characters in DB comments

Post by SecureGen » Tue 12 Sep 2017 12:28

Thank you for your report. We will investigate the case and notify you about the result.

SecureGen
Devart Team
Posts: 133
Joined: Thu 08 Sep 2005 06:27

Re: Corrupted XML comments through '<', '>' and other characters in DB comments

Post by SecureGen » Tue 12 Sep 2017 16:54

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

Mike@Devart
Posts: 3
Joined: Fri 08 Sep 2017 11:53

Re: Corrupted XML comments through '<', '>' and other characters in DB comments

Post by Mike@Devart » Mon 18 Sep 2017 06:07

Thanks for your support :-)

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Corrupted XML comments through '<', '>' and other characters in DB comments

Post by Shalex » Mon 30 Oct 2017 18:52

The bug with escaping invalid XML characters in the comments generated by templates is fixed: viewtopic.php?f=32&t=36131.

Post Reply