Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MetaType Class

Represents the mapping of a domain object type to the columns of a database table.

System.Object
  System.Data.Linq.Mapping.MetaType

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)
public abstract class MetaType

The MetaType type exposes the following members.

  NameDescription
Protected methodMetaTypeInitializes a new instance of the MetaType class.
Top
  NameDescription
Public propertyAssociationsGets an enumeration of all the associations.
Public propertyCanInstantiateGets whether the underlying type can be instantiated as the result of a query.
Public propertyDataMembersGets an enumeration of all the data members (fields and properties).
Public propertyDBGeneratedIdentityMemberGets the member that represents the auto-generated identity column.
Public propertyDerivedTypesGets an enumeration of the immediate derived types in an inheritance hierarchy.
Public propertyDiscriminatorGets the member that represents the inheritance discriminator column.
Public propertyHasAnyLoadMethodGets a value that indicates whether the current MetaType or any of its bases types has an OnLoaded method.
Public propertyHasAnyValidateMethodGets a value that indicates whether the MetaType or any of its bases types has an OnValidate method.
Public propertyHasInheritanceGets a value indicating whether the type is part of a mapped inheritance hierarchy.
Public propertyHasInheritanceCodeGets a value indicating whether this type defines an inheritance code.
Public propertyHasUpdateCheckGets a value indicating whether the type has any persistent member that may require a test for optimistic concurrency conflicts.
Public propertyIdentityMembersGets an enumeration of all the data members that define the unique identity of the type.
Public propertyInheritanceBaseGets the base meta-type in the inheritance hierarchy.
Public propertyInheritanceCodeGets a value indicating whether this type defines an inheritance code.
Public propertyInheritanceDefaultGets a value indicating whether this type is used as the default of an inheritance hierarchy.
Public propertyInheritanceRootGets the root type of the inheritance hierarchy.
Public propertyInheritanceTypesGets a collection of all types that are defined by an inheritance hierarchy.
Public propertyIsEntityGets a value indicating whether the MetaType is an entity type.
Public propertyIsInheritanceDefaultGets a value indicating whether this type is used as the default of an inheritance hierarchy.
Public propertyModelGets the MetaModel that contains this MetaType.
Public propertyNameGets the name of the MetaType.
Public propertyOnLoadedMethodGets information about the OnLoaded method contained by this meta-type.
Public propertyOnValidateMethodGets information about the OnValidate method contained by this meta-type.
Public propertyPersistentDataMembersGets a collection of all the persistent data members.
Public propertyTableGets the MetaTable that uses this MetaType for row definition.
Public propertyTypeGets the underlying common language runtime (CLR) type.
Public propertyVersionMemberGets a row-version or timestamp column for this MetaType.
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDataMemberGets the MetaDataMember associated with the specified member.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetInheritanceTypeGets the MetaType for an inheritance subtype.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetTypeForInheritanceCodeGets the meta-type associated with the specified inheritance code.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.