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

MetaStruct

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 MetaStruct class represents a struct type in the Telerik Data Access metadata model. It derives from MetaType and doesn't expose any additional properties.

The following examples shows you how to get information about the structs in your domain model:

private string GetStructs(Telerik.OpenAccess.Metadata.MetadataContainer container)
{
   StringBuilder sb = new StringBuilder();
   foreach (MetaStruct metaStruct in container.Structs)
   {
       sb.AppendFormat("\nstructName: {0}", metaStruct.Name);
   }
   return sb.ToString();
}
Private Function GetStructs(ByVal container As Telerik.OpenAccess.Metadata.MetadataContainer) _
    As String
 Dim sb As New StringBuilder()
 For Each _metaStruct As MetaStruct In container.Structs
  sb.AppendFormat(vbLf & "structName: {0}", _metaStruct.Name)
 Next _metaStruct
 Return sb.ToString()
End Function