I wanted to generate code but at the same time parse the target file first to see if any changes have been manually made or with the graphical designer. I found the following parser for c# code: http://www.codeplex.com/csparser; it seems
SQL2Diagram
SQL2Diagram: A sourceforge project that I am involved in; we use that program at work to keep track of our database structure, consisting of 250+ tables in several modules. It basically parses the SQL Create Table statements and generates both