共用方式為


ValueGeneratorSelector.FindForType 方法

定義

多載

FindForType(IProperty, IEntityType, Type)

為指定的屬性和型別建立新的值產生器,其中 屬性可能有 ValueConverter

FindForType(IProperty, ITypeBase, Type)

為指定的屬性和型別建立新的值產生器,其中 屬性可能有 ValueConverter

FindForType(IProperty, IEntityType, Type)

為指定的屬性和型別建立新的值產生器,其中 屬性可能有 ValueConverter

protected virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator? FindForType (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Type clrType);
abstract member FindForType : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Type -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.FindForType : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Type -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Protected Overridable Function FindForType (property As IProperty, entityType As IEntityType, clrType As Type) As ValueGenerator

參數

property
IProperty

要為其取得值產生器的 屬性。

entityType
IEntityType

值產生器將用於的實體類型。 在衍生實體類型上的繼承屬性上呼叫時,此實體類型可能與宣告的實體類型不同 property

clrType
Type

類型,可能是轉換之後的提供者類型,而不是屬性類型。

傳回

新建立的值產生器。

適用於

FindForType(IProperty, ITypeBase, Type)

為指定的屬性和型別建立新的值產生器,其中 屬性可能有 ValueConverter

protected virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator? FindForType (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase, Type clrType);
abstract member FindForType : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * Type -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.FindForType : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * Type -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Protected Overridable Function FindForType (property As IProperty, typeBase As ITypeBase, clrType As Type) As ValueGenerator

參數

property
IProperty

要為其取得值產生器的 屬性。

typeBase
ITypeBase

值產生器將用於的實體類型。 在衍生實體類型上的繼承屬性上呼叫時,此實體類型可能與宣告的實體類型不同 property

clrType
Type

類型,可能是轉換之後的提供者類型,而不是屬性類型。

傳回

新建立的值產生器。

適用於