Add XML Comments to class properties generated by the LINQ to SQL designer

拟墨画扇 提交于 2020-01-03 08:07:07

问题


I used the LINQ to SQL designer in Visual Studio to create an object model of a database. Now, I want to add XML comments to each generated property but I can't figure out how to do it without erasing the properties the next time the dbml file is refreshed.

How can this be done?


回答1:


I believe it's not possible to keep xml comments in sync with autogenerated code automatically. However, xml comments can leave in separate file (just set "XML documentation file" option on "Project properties"->"Build" tab). You can create initial version of XML documentation file and update in manually if necessary




回答2:


This tool can do it: http://www.huagati.com/dbmltools/



来源:https://stackoverflow.com/questions/37519/add-xml-comments-to-class-properties-generated-by-the-linq-to-sql-designer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!