Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ComplexTypeConfiguration(TComplexType) Class
Collapse the table of content
Expand the table of content

ComplexTypeConfiguration<TComplexType> Class

Entity Framework 5.0

Allows configuration to be performed for an complex type in a model. A ComplexTypeConfiguration can be obtained by using the ComplexType<TComplexType>()method on or a custom type derived from ComplexTypeConfiguration<TComplexType> can be registered by using the property Configurations.


Namespace:  System.Data.Entity.ModelConfiguration
Assembly:  EntityFramework (in EntityFramework.dll)

public class ComplexTypeConfiguration<TComplexType> : StructuralTypeConfiguration<TComplexType>
where TComplexType : class

Type Parameters


The complex type to be configured.

The ComplexTypeConfiguration<TComplexType> type exposes the following members.

Public methodComplexTypeConfiguration<TComplexType> Initializes a new instance of ComplexTypeConfiguration<TComplexType>.

Public methodEqualsDetermines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides StructuralTypeConfiguration<TStructuralType>.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides StructuralTypeConfiguration<TStructuralType>.GetHashCode().)
Public methodGetTypeGets the type of the current instance. This method is hidden from IntelliSense.
Public methodIgnore<TProperty> Excludes a property from the model so that it will not be mapped to the database. (Inherited from StructuralTypeConfiguration<TStructuralType>.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodProperty<T>(Expression<Func<TStructuralType, T>>) Configures a struct property that is defined on this type. (Inherited from StructuralTypeConfiguration<TStructuralType>.)
Public methodToStringReturns a string that represents the current object. This method is hidden from IntelliSense. (Overrides StructuralTypeConfiguration<TStructuralType>.ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft