The SchemaExport class is fairly limited in the scope of what it does, so I wonder if it was even intended for more sophistcation than what it has.
Given the available methods, I don't know of any way to do it other than to capture the output from SchemaExport.Create( true, false ) by redirecting Console.Out, then pruning what you don't need and executing yourself.
This seems like a really ugly hack to me (I use SchemaExport, but only in testing so this hasn't been an issue) since it would seem preferrable for SchemaExport to have this functionality. Perhaps some more sophisticated extensions would be of interest to others as well.
Others may have better insights/more experience with this.
|