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.