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


The MetaPersistentType represents a class containing the metadata for the persistent classes used by Telerik Data Access (e.g.: Product, Category, Order, etc.). It represents the structure of a top-level concept, such as a product or category, in a conceptual model. The MetaPersistentType is one of the most important types in the Telerik Data Access metadata. It derives from MetaType class and exposes the following properties:

  • Table - gets the MetaTable instance that is mapped to the current type. It could be null.
  • BaseType - gets the type from which the current type directly inherits.
  • DerivedTypes - gets a list of types that have the current type as their base type.
  • InheritanceStrategy - gets the inheritance strategy for the current type. It could be Default, Flat, Vertical or Horizontal.
  • KeyGeneratorName - gets the name of the used key generator. It could be Default, Autoinc, Guid and HighLow. Currently no custom key generators are allowed, only those provided with Telerik Data Access.
  • DiscriminatorValue - the database class id used to distinguish a particular instance when loaded.
  • DiscriminatorColumn - gets the column that holds the discriminator value.
  • ClassId - the in-memory id used to distinguish a particular instance.
  • OptimisticConcurrencyControlStrategy - gets the concurrency control strategy used during write time. It could be Default, None, Version, Timestamp, Changed, Backend, All.
  • ShouldUpdateSchema - gets a value indicating whether the relational store definition for the current type requires modification.
  • IsArtificial - gets whether this field is marked as artificial.
  • IdentityType - gets the identity type of the current type. It could be Default, Internal, SingleField, MultipleField.
  • DataAccessKind - gets the type of access to user data for the current type. It could be ReadWrite, InsertOnly, ReadOnly.

The following examples shows you how to get information about the persistent types in your model:

private string GetPersistentTypes(Telerik.OpenAccess.Metadata.MetadataContainer container)
   StringBuilder sb = new StringBuilder();
   foreach (MetaPersistentType persistenType in container.PersistentTypes)
       sb.AppendFormat("\nPersistentTypeName: {0}", persistenType.Name);
   return sb.ToString();
Private Function GetPersistentTypes(ByVal container As Telerik.OpenAccess.Metadata.MetadataContainer) As String
 Dim sb As New StringBuilder()
 For Each persistenType As MetaPersistentType In container.PersistentTypes
  sb.AppendFormat(vbLf & "PersistentTypeName: {0}", persistenType.Name)
 Next persistenType
 Return sb.ToString()
End Function