共用方式為


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()

允許針對模型中的型別執行組態。

適用於