Telerik OpenAccess ORM

Telerik OpenAccess ORM Send comments on this topic.
Obtaining the MetadataContainer Used by the Context
Programmer's Guide > Feature Reference > API > Context API > Obtaining the MetadataContainer Used by the Context

Glossary Item Box

The MetadataContainer is a central runtime class that you can use to interact with the metadata in the context of an application. Telerik OpenAccess ORM metadata model provides both the infrastructure and type hierarchy that are used to describe the domain model in Telerik OpenAccess ORM. To get the metadata used by the context, use the OpenAccessContext.Metadata property.

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

For more information about the OpenAccess Metadata, please read here.