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:
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.