You can export and import meta-models. You also can compare two meta-models, which is useful during these operations.
The following classes are available in the Mediachase.BusinessFoundation.Data.Meta.Schema namespace.
## Export meta-models
Export a meta-model to a file with the MetaModelGenerator class. By default, MetaModelGenerator exports all elements; use the SelectedElements property of the MetaModelGenerator class to export custom elements.
Example: Exporting a meta-model to a file
## Compare meta-models
Before you import a meta-model, you should compare meta-models and create synchronization commands. You can export and compare an existing meta-model with the one you are about to import before importing it.
**Example:** Compare two meta-models and create synchronization script
## Import meta-models
When importing a meta-model, follow these steps.
Export the original meta-model.
Compare it with the meta-model to be imported.
Create synchronization commands (described in the previous section).
Execute the synchronization commands.
**Example:** Loading and executing synchronization commands