共用方式為


ComplexTypeConfiguration<TComplexType> 類別

定義

允許針對模型中的複雜型別執行組態。 ComplexTypeConfiguration 可以透過 上的 DbModelBuilder ComplexType 方法取得,或衍生自 ComplexTypeConfiguration 的自訂型別可以透過 上的 DbModelBuilder Configurations 屬性註冊。

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)

允許針對模型中的複雜型別執行組態。 ComplexTypeConfiguration 可以透過 上的 DbModelBuilder ComplexType 方法取得,或衍生自 ComplexTypeConfiguration 的自訂型別可以透過 上的 DbModelBuilder Configurations 屬性註冊。

GetHashCode()

允許針對模型中的複雜型別執行組態。 ComplexTypeConfiguration 可以透過 上的 DbModelBuilder ComplexType 方法取得,或衍生自 ComplexTypeConfiguration 的自訂型別可以透過 上的 DbModelBuilder Configurations 屬性註冊。

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

允許針對模型中的複雜型別執行組態。 ComplexTypeConfiguration 可以透過 上的 DbModelBuilder ComplexType 方法取得,或衍生自 ComplexTypeConfiguration 的自訂型別可以透過 上的 DbModelBuilder Configurations 屬性註冊。

適用於