StructuralTypeConfiguration<TStructuralType> 类

定义

允许为模型中的类型执行配置。

public abstract class StructuralTypeConfiguration<TStructuralType> where TStructuralType : class
type StructuralTypeConfiguration<'StructuralType (requires 'StructuralType : null)> = class
Public MustInherit Class StructuralTypeConfiguration(Of TStructuralType)

类型参数

TStructuralType

要配置的类型。

继承
StructuralTypeConfiguration<TStructuralType>
派生

构造函数

StructuralTypeConfiguration<TStructuralType>()

允许为模型中的类型执行配置。

方法

Equals(Object)

允许为模型中的类型执行配置。

GetHashCode()

允许为模型中的类型执行配置。

GetType()

获取当前实例的 Type

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

从模型中排除某个属性,使该属性不会映射到数据库。

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

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

Property(Expression<Func<TStructuralType,DateTime>>)

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

Property(Expression<Func<TStructuralType,DateTimeOffset>>)

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

Property(Expression<Func<TStructuralType,DbGeography>>)

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

Property(Expression<Func<TStructuralType,DbGeography>>)

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

Property(Expression<Func<TStructuralType,DbGeometry>>)

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

Property(Expression<Func<TStructuralType,DbGeometry>>)

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

Property(Expression<Func<TStructuralType,Decimal>>)

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

Property(Expression<Func<TStructuralType,Nullable<DateTime>>>)

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

Property(Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>)

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

Property(Expression<Func<TStructuralType,Nullable<Decimal>>>)

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

Property(Expression<Func<TStructuralType,Nullable<TimeSpan>>>)

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

Property(Expression<Func<TStructuralType,String>>)

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

Property(Expression<Func<TStructuralType,TimeSpan>>)

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

Property<T>(Expression<Func<TStructuralType,Nullable<T>>>)

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

Property<T>(Expression<Func<TStructuralType,T>>)

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

ToString()

允许为模型中的类型执行配置。

适用于