Defining View Columns

Meta Data Services Programming

Meta Data Services Programming

Defining View Columns

Column names are generated from property interface members. There is one column for each property.

You can create custom names for view columns. Creating custom names can eliminate duplicate names in cases where columns from multiple interfaces are defined in the same view. For more information about defining column names, see IViewPropertyDef Interface.

Using Prefixes to Distinguish Between Names

When necessary, the repository engine adds prefixes to disambiguate identical names. Duplicate names are most likely to occur when you generate a class view on a class that implements interfaces that contain members of the same name.

To resolve duplicate column names, the repository engine attaches the interface name as a prefix to each occurrence of the column name.

For example, consider the following two interface members, ISpellchecker::Name and IThesaurus::name. When creating a view that combines both members, one item will be called ISpellchecker.Name and the item will be called IThesaurus.name.

The combined name of base, interface prefix, and view type prefix cannot exceed the maximum length of 118 characters for view columns. For more information, see Naming Conventions for Generated Views.

See Also

Defining a Class View

Defining a Junction-Table View

Defining an Interface View