ComplexTypeConfiguration<TComplexType> ComplexTypeConfiguration<TComplexType> 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>ComplexTypeConfiguration<TComplexType>ComplexTypeConfiguration<TComplexType>

Constructors

ComplexTypeConfiguration<TComplexType>() ComplexTypeConfiguration<TComplexType>() ComplexTypeConfiguration<TComplexType>()

Initializes a new instance of ComplexTypeConfiguration

Methods

Equals(Object) Equals(Object) Equals(Object)
GetHashCode() GetHashCode() GetHashCode()
GetType() GetType() GetType()
Ignore<TProperty>(Expression<Func<TComplexType,TProperty>>) Ignore<TProperty>(Expression<Func<TComplexType,TProperty>>) Ignore<TProperty>(Expression<Func<TComplexType,TProperty>>)

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

Property(Expression<Func<TStructuralType,Byte[]>>) Property(Expression<Func<TStructuralType,Byte[]>>) 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>>) Property(Expression<Func<TStructuralType,DateTime>>) Property(Expression<Func<TStructuralType,DateTime>>)

Configures a DateTime property that is defined on this type.

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

Configures a DateTimeOffset property that is defined on this type.

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

Configures a DbGeography property that is defined on this type.

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

Configures a DbGeography property that is defined on this type.

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

Configures a DbGeometry property that is defined on this type.

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

Configures a DbGeometry property that is defined on this type.

(Inherited from StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Decimal>>) Property(Expression<Func<TStructuralType,Decimal>>) 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>>>) Property(Expression<Func<TStructuralType,Nullable<DateTime>>>) 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>>>) Property(Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>) 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>>>) Property(Expression<Func<TStructuralType,Nullable<Decimal>>>) 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>>>) Property(Expression<Func<TStructuralType,Nullable<TimeSpan>>>) 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>>) Property(Expression<Func<TStructuralType,String>>) 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>>) Property(Expression<Func<TStructuralType,TimeSpan>>) 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>>>) Property<T>(Expression<Func<TStructuralType,Nullable<T>>>) 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>>) Property<T>(Expression<Func<TStructuralType,T>>) Property<T>(Expression<Func<TStructuralType,T>>)

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

(Inherited from StructuralTypeConfiguration<TStructuralType>)
ToString() ToString() ToString()

Applies to