Telerik OpenAccess ORM

Telerik OpenAccess ORM Send comments on this topic.
Overview
See Also
Programmer's Guide > Feature Reference > API > OpenAccess Metadata > Metadata Container > Overview

Glossary Item Box

Telerik OpenAccess ORM provides the MetadataContainer class as a central runtime API that you can use to interact with the Metadata Model in the context of an application. OpenAccess ORM provides the MetadataContainer class as a central runtime API that you can use to interact with the Metadata Model in the context of an application. The MetadataContainer class aggregates metadata from specific item collections.

The MetadataContainer aggregates metadata from specific Item Collections that are individually responsible for loading different types of metadata.
Item collections reflect the different parts of the metadata model in an application that uses Telerik OpenAccess ORM. The layers are the conceptual and the relational layer.

Item collections reflect the different types of models in an application that uses Telerik OpenAccess ORM.

A MetadataContainer can be easily instantiated via the OpenAccessContext's Metadata property.

C# Copy Code
using (EntitiesModel dbContext = new EntitiesModel())
{
   MetadataContainer metadataContainer = dbContext.Metadata;
}
VB .NET Copy Code
Using dbContext As New EntitiesModel()
 Dim _metadataContainer As MetadataContainer = dbContext.Metadata
End Using

See Also