ComplexType Class
Represents a complex type in a conceptual model.
System.Data.Metadata.Edm.MetadataItem
System.Data.Metadata.Edm.GlobalItem
System.Data.Metadata.Edm.EdmType
System.Data.Metadata.Edm.StructuralType
System.Data.Metadata.Edm.ComplexType
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The ComplexType type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Abstract | Gets a value indicating whether this type is abstract or not. (Inherited from EdmType.) |
![]() | BaseType | Gets the base type of this type. (Inherited from EdmType.) |
![]() | BuiltInTypeKind | Gets the built-in type kind for this ComplexType. (Overrides MetadataItem.BuiltInTypeKind.) |
![]() | Documentation | Gets or sets the documentation associated with this type. (Inherited from MetadataItem.) |
![]() | FullName | Gets the full name of this type. (Inherited from EdmType.) |
![]() | Members | Gets the list of members on this type. (Inherited from StructuralType.) |
![]() | MetadataProperties | Gets the list of properties of the current type. (Inherited from MetadataItem.) |
![]() | Name | Gets the name of this type. (Inherited from EdmType.) |
![]() | NamespaceName | Gets the namespace of this type. (Inherited from EdmType.) |
![]() | Properties | Gets the list of properties for this ComplexType. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetCollectionType | Returns an instance of the CollectionType whose element type is this type. (Inherited from EdmType.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns the full name of this type. (Inherited from EdmType.) |
The ComplexType in a conceptual model represents a type that includes a set of properties like an entity type but does not include a key property. For more information about the complex types in a conceptual model, see Complex Type and How to: Define a Model with Complex Types (Entity Framework).
The following code sample gets a metadata workspace from the connection and uses that metadata workspace to retrieve information about the properties of the complex types in the specified model. Note that the metadata workspace is a runtime service component that provides support for retrieving metadata.
The code sample uses a CSpace to specify the model. The CSpace represents the default name for the conceptual model. The code sample uses the CustomerComplexAddr model that is provided in How to: Define a Model with Complex Types (Entity Framework) topic. For an example of the application config file, see Implementing Complex Type (EDM) topic.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
