views:

19

answers:

0

I'm trying to use the Sql100DatabaseSchemaProvider to generate a schema comparison and update script in code at runtime. It's not the same task really, but I'm using this:

http://blogs.msdn.com/b/bahill/archive/2010/05/04/leveraging-the-visual-studio-2010-database-deployment-api.aspx

as a working reference...

So far I've got to the point where the API wants a dbschema (or DataSchemaModel) from me. I want to create this programatically, but I'm not sure how. I have a Entity Framework ObjectContext and MetadataWorkspace at my disposal, but I'm not sure how to get from that to a dbschema file or DaaSchemaModel in my code.

Anyone have any experience with this?

Thanks.