語言

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>
衍生

建構函式

名稱 Description
StructuralTypeConfiguration<TStructuralType>()

允許在模型中為某一型態進行配置。

方法

名稱 Description
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()

允許在模型中為某一型態進行配置。

適用於