语言

ComplexTypeConfiguration<TComplexType> 类

定义

允许为模型中的复杂类型执行配置。 可以通过 ComplexType 方法 DbModelBuilder 获取 ComplexTypeConfiguration,也可以通过配置属性注册 DbModelBuilder从 ComplexTypeConfiguration 派生的自定义类型。

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)

类型参数

TComplexType

要配置的复杂类型。

继承
ComplexTypeConfiguration<TComplexType>

构造函数

名称 说明
ComplexTypeConfiguration<TComplexType>()

初始化 ComplexTypeConfiguration 的新实例

方法

名称 说明
Equals(Object)

允许为模型中的复杂类型执行配置。 可以通过 ComplexType 方法 DbModelBuilder 获取 ComplexTypeConfiguration,也可以通过配置属性注册 DbModelBuilder从 ComplexTypeConfiguration 派生的自定义类型。

GetHashCode()

允许为模型中的复杂类型执行配置。 可以通过 ComplexType 方法 DbModelBuilder 获取 ComplexTypeConfiguration,也可以通过配置属性注册 DbModelBuilder从 ComplexTypeConfiguration 派生的自定义类型。

GetType()

获取当前实例的 Type。

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

从模型中排除属性,以便它不会映射到数据库。

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

从模型中排除属性,以便它不会映射到数据库。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Byte[]>>)

System.byte[]配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DateTime>>)

DateTime配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DateTimeOffset>>)

DateTimeOffset配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DbGeography>>)

DbGeography配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DbGeography>>)

DbGeography配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DbGeometry>>)

DbGeometry配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,DbGeometry>>)

DbGeometry配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Decimal>>)

System.decimal配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Nullable<DateTime>>>)

System.DateTime?配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>)

System.DateTimeOffset?配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Nullable<Decimal>>>)

System.decimal?配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,Nullable<TimeSpan>>>)

System.TimeSpan?配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,String>>)

System.string配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property(Expression<Func<TStructuralType,TimeSpan>>)

TimeSpan配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property<T>(Expression<Func<TStructuralType,Nullable<T>>>)

System.struct?配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
Property<T>(Expression<Func<TStructuralType,T>>)

System.struct配置在此类型上定义的属性。

(继承自 StructuralTypeConfiguration<TStructuralType>)
ToString()

允许为模型中的复杂类型执行配置。 可以通过 ComplexType 方法 DbModelBuilder 获取 ComplexTypeConfiguration,也可以通过配置属性注册 DbModelBuilder从 ComplexTypeConfiguration 派生的自定义类型。

适用于