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

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

Postby 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
Mike@Devart
 
Posts: 2
Joined: Fri 08 Sep 2017 11:53

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

Postby 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

Postby 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
SecureGen
Devart Team
 
Posts: 133
Joined: Thu 08 Sep 2005 06:27

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

Postby Mike@Devart » Mon 18 Sep 2017 06:07

Thanks for your support :-)
Mike@Devart
 
Posts: 2
Joined: Fri 08 Sep 2017 11:53


Return to dotConnect for Oracle