Database: IDatabase;
The Database property determines a database that stores dictionary data.
The specified database determines where to create a dictionary table. By default, when an MDM dictionary is created, a database is used that is set for the repository as a default database.
Executing the example requires that the repository contains an MDM repository with the RDS_D identifier.
Add links to the Db, Metabase, Rds system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Dict: IRdsDictionary;
Database: IMetabaseObjectDescriptor;
Begin
// Get current repository
MB := MetabaseClass.Active;
// Get MDM dictionary
Dict := MB.ItemById("RDS_D").Bind As IRdsDictionary;
Database := Dict.Database As IMetabaseObjectDescriptor;
// Display database driver identifier
Debug.WriteLine(Database.Name + '(' + Database.Id + ')');
End Sub UserProc;
After executing the example information about the database that stores MDM dictionary data is displayed in the console window.
See also: