Data Access has been discontinued. Please refer to this page for more information.

MetaItem

This article is relevant to entity models that utilize the deprecated Visual Studio integration of Telerik Data Access. The current documentation of the Data Access framework is available here.

The top-level class is a MetaItem, which is the base class for all classes in the Telerik Data Access metadata type hierarchy. The MetaItem class exposes the following properties:

  • Description - gets or sets the description associated with the current type.
  • Name - gets the name of the item.
  • MetaDataProperties - gets the list of properties of the current type.
private string GetMetadataProperties(Telerik.OpenAccess.Metadata.MetadataContainer container)
{
   StringBuilder sb = new StringBuilder();
   foreach (IMetaItemAttribute item in container.MetaDataProperties)
   {
       sb.AppendFormat("\n\nKey: {0}, Value: {1}, Kind: {2}", item.Key, item.Value, item.Kind);
   }
   return sb.ToString();
}
Private Function GetMetadataProperties(ByVal container As Telerik.OpenAccess.Metadata.MetadataContainer) As String
 Dim sb As New StringBuilder()
 For Each item As IMetaItemAttribute In container.MetaDataProperties
  sb.AppendFormat(vbLf & vbLf & "Key: {0}, Value: {1}, Kind: {2}", _
        item.Key, item.Value, item.Kind)
 Next item
 Return sb.ToString()
End Function