Deprecated  in 5.0 - might be removed in next major version. Use getSchemaView() on the iModel and call view.findClass(...) instead.

Get metadata for a class. This method will load the metadata from the iModel into the cache as a side-effect, if necessary.

getMetaData(classFullName: string): EntityMetaData

@throws IModelError if the metadata cannot be found nor loaded.

@example * ```typescript // Current usage: const metaData: EntityMetaData = imodel.getMetaData("SchemaName:ClassName");

// Replacement: const view = await imodel.getSchemaView(); const cls = view.findClass("SchemaName:ClassName");

| Parameter | Type | Description | |----|----|----| | <span class="parameter-name">classFullName</span> | <span class="parameter-type">string</span> | &nbsp; | **Returns** - <span class="method-output"> EntityMetaData</span> ### Defined in - <span class="defined-in"><a href="https://github.com/iTwin/itwinjs-core/blob/00a5384d03b04b939ebaaebe6f7b7d6cf372bde0/core/backend/src/IModelDb.ts#L1898" target="_blank">backend/src/IModelDb.ts</a></span> Line 1898

Last Updated: 04 July, 2026