共用方式為


ValueConverterSelector.Select(Type, Type) 方法

定義

傳回可用來轉換指定模型類型的實例清單 ValueConverter 。 最接近清單前端的轉換器應該在接近結尾的轉換器喜好設定中使用。

[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterSelector+<Select>d__10))]
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo> Select (Type modelClrType, Type providerClrType = default);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterSelector+<Select>d__11))]
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo> Select (Type modelClrType, Type? providerClrType = default);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterSelector+<Select>d__10))>]
abstract member Select : Type * Type -> seq<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo>
override this.Select : Type * Type -> seq<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterSelector+<Select>d__11))>]
abstract member Select : Type * Type -> seq<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo>
override this.Select : Type * Type -> seq<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo>
Public Iterator Overridable Function Select (modelClrType As Type, Optional providerClrType As Type = Nothing) As IEnumerable(Of ValueConverterInfo)

參數

modelClrType
Type

需要轉換子的型別。

providerClrType
Type

要設為目標的資料庫提供者類型,或針對任何專案為 null。

傳回

可用的轉換器。

實作

屬性

適用於