SchemaViewManager Class @beta

Owns the lifetime of one iModel's ($(SchemaView:class)$refLinkSource=userRef/ecschema-metadata/ecschema-metadata/src/SchemaView/SchemaViewManager.ts@83): lazy loading, incremental (filtered) loading, serialization of concurrent requests, and invalidation. All data access goes through the supplied SchemaViewDataProvider.

Keep one manager per iModel connection. Calls to getSchemaView reuse one accumulating view until it is invalidated. The manager does not monitor schema changes; call SchemaViewManager.reset after a known change, or await invalidateIfChanged after an operation that may have changed schemas.

Methods

Name Description
constructor(dataProvider: SchemaViewDataProvider): SchemaViewManager    
getSchemaView(args?: GetSchemaViewArgs): Promise<SchemaView> Get the schema view, loading the requested schemas and their references that are not present  
invalidateIfChanged(): Promise<void> Check whether the iModel's schemas have changed since the current view was built, and discard  
reset(): void Throw away the current schema view.  

Defined in

Last Updated: 30 September, 2026