Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top