Share via


ComplexTypeConfiguration<TComplexType> Class

Definition

Allows configuration to be performed for an complex type in a model. A ComplexTypeConfiguration can be obtained via the ComplexType method on DbModelBuilder or a custom type derived from ComplexTypeConfiguration can be registered via the Configurations property on DbModelBuilder.

public class ComplexTypeConfiguration<TComplexType> : System.Data.Entity.ModelConfiguration.Configuration.StructuralTypeConfiguration<TComplexType> where TComplexType : class
type ComplexTypeConfiguration<'ComplexType (requires 'ComplexType : null)> = class
    inherit StructuralTypeConfiguration<'ComplexType (requires 'ComplexType : null)>
Public Class ComplexTypeConfiguration(Of TComplexType)
Inherits StructuralTypeConfiguration(Of TComplexType)

Type Parameters

TComplexType

The complex type to be configured.

Inheritance
ComplexTypeConfiguration<TComplexType>

Constructors

ComplexTypeConfiguration<TComplexType>()

Initializes a new instance of ComplexTypeConfiguration

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

GetType()

Gets the Type of the current instance.

Ignore<TProperty>(Expression<Func<TComplexType,TProperty>>)

Excludes a property from the model so that it will not be mapped to the database.

Ignore<TProperty>(Expression<Func<TStructuralType,TProperty>>)

Excludes a property from the model so that it will not be mapped to the database.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Byte[]>>)

Configures a System.byte[] property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DateTime>>)

Configures a DateTime property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DateTimeOffset>>)

Configures a DateTimeOffset property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DbGeography>>)

Configures a DbGeography property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DbGeography>>)

Configures a DbGeography property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DbGeometry>>)

Configures a DbGeometry property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DbGeometry>>)

Configures a DbGeometry property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Decimal>>)

Configures a System.decimal property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Nullable<DateTime>>>)

Configures a System.DateTime? property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>)

Configures a System.DateTimeOffset? property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Nullable<Decimal>>>)

Configures a System.decimal? property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Nullable<TimeSpan>>>)

Configures a System.TimeSpan? property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,String>>)

Configures a System.string property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,TimeSpan>>)

Configures a TimeSpan property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property<T>(Expression<Func<TStructuralType,Nullable<T>>>)

Configures a System.struct? property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property<T>(Expression<Func<TStructuralType,T>>)

Configures a System.struct property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
ToString()

Returns a string that represents the current object.

Applies to