AutoModel Method

English Query

English Query

AutoModel Method

Creates default entities and relationships for database objects in the current project.

Applies To

EQModel Object

Syntax

EQModel.AutoModel(ObjectType, ObjectID, ModuleID)

Parts

EQModel

Object variable into which model information is loaded.

ObjectType

Integer that represents the type of object and relationships that you want to generate:

Type of object Value Description
eqObjEntity 1 Entity
eqObjModule 10 Module file
eqObjTable 4 Table
eqObjCube 11 OLAP cube
eqObjDimension 12 OLAP dimension
eqObjProject 9 Project file

ObjectID

String containing the ID of the module, table, or entity for which you want to automatically create entities and relationships. Ignored if ObjectType is eqObjProject.

ModuleID

ID of the module in which you want the objects created.

Remarks

ModuleID is stored as an attribute of the MODULE element in the XMLDOMDocument object.

See Also

Compile-Time Error Messages (Authoring Object Model)