Creating a Model

To create a new model using the API, you first need to create a new instance of ISCPropertyBag. The ISCPropertyBag interface is a property bag that is used to hold the properties of the new model. The following properties are used in creating a new model.

A complete set of properties is located in the appendix API Interfaces Reference.

Property Name

Type

Description

Model_Type

Long

Sets the type of the persistence unit as follows:

  • 1 � Logical (for logical models; this is the default if no type is provided)
  • 2 � Physical (for physical models)
  • 3 � Combined (for logical/physical models)

Target_Server
Target_Server_Version
Target_Server_Minor_Version

Long

Sets the target database properties for physical and logical/physical models.

Once the property bag is created and populated, a new persistence unit must be created within the persistence unit collection.