Creating Type Information Programmatically
If you do not have a modeling tool, you can create a new information model or extend an existing one programmatically. This section explains the steps you need to follow when creating an information model, and discusses some issues to consider in designing and inserting information models into a Microsoft® SQL Server™ 2000 Meta Data Services repository.
When you insert an information model into a repository, you populate the Repository Type Information Model (RTIM). That is, you create instances of the classes, interfaces, properties, methods, and relationship types of the RTIM.
The following topics describe the steps in creating type information programmatically.
Topic | Description |
---|---|
Begin a Transaction | Explains how to begin a transaction that brackets the information model definitions |
Create a Repository Type Library | Describes how to create an empty information model to store subsequent definition |
Define Dependencies Between Type Libraries | Explains how to define dependencies between multiple information models |
Add Classes to the Repository Type Library | Details how to add class definitions to an information model |
Add Interfaces to Each Class | Details how to add interface definitions to an information model |
Add Properties to Each Interface | Details how to add property definitions to an interface |
Add Methods to Each Interface | Details how to add method definitions to an interface |
Add Relationship Types and Pairs of Collection Types | Details how to add relationship and collection definitions to an interface |
Commit the Transaction | Describes how to commit the transaction that inserts your definitions into a Meta Data Services repository |
See Also
Creating and Extending Type Information