Corrupted XML comments through '<', '>' and other characters in DB comments
Posted: 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
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