Search code examples
imagelinq-to-sqlsaveclass-diagram

C# How to programmatically export/save DBML diagram?


We work with many Linq to DB object models and every time there's a change we have to open the DBML design surface and save out the diagram image for doc purposes.

Is there a programmatic way of generating an image of the dbml and saving it to a JPG or some image format?

All I've seen is how to do this manually.

Thank you


Solution

  • you can export the diagram following the below:

    http://msdn.microsoft.com/en-us/library/ff469815.aspx