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


The MetaPrimitiveMember class describes members that are of value type. It exposes the following properties:

  • Column - gets the MetaColumn instance that is mapped to the current member. It could be null.
  • IsIdentity - gets whether the current member represents the owner's type identity.
  • IsVersion - gets whether the current member represents the owner's version in cases of 'version' concurrency mechanism.
  • IsSerializedToBlob - gets whether the data in the current field is serialized to a blob column.

The following example shows you how to access all primitive properties of a persistent type:

private static string GetPrimitiveProperties(Telerik.OpenAccess.Metadata
    .MetadataContainer container)
   StringBuilder sb = new StringBuilder();
   foreach (MetaPersistentType persistenType in container.PersistentTypes)
       sb.AppendFormat("\nPersistentTypeName: {0}", persistenType.Name);
       foreach (MetaMember member in persistenType.Members)
           MetaPrimitiveMember primitiveMember = member as MetaPrimitiveMember;
           if (primitiveMember != null)
               sb.AppendFormat("\n\tPrimitiveType: {0}", 
                   (primitiveMember.MemberType as MetaPrimitiveType).FullName);
   return sb.ToString();
Private Shared Function GetPrimitiveProperties(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)
  For Each member As MetaMember In persistenType.Members
   Dim primitiveMember As MetaPrimitiveMember = TryCast(member, MetaPrimitiveMember)
   If primitiveMember IsNot Nothing Then
    sb.AppendFormat(vbLf & vbTab & "PrimitiveType: {0}", _
        (TryCast(primitiveMember.MemberType, MetaPrimitiveType)).FullName)
   End If
  Next member
 Next persistenType
 Return sb.ToString()
End Function