IModel.FindTypeMappingConfiguration(Type) 方法

定義

尋找指定純量 Type 的預先慣例組態。

public Microsoft.EntityFrameworkCore.Metadata.ITypeMappingConfiguration? FindTypeMappingConfiguration (Type scalarType);
abstract member FindTypeMappingConfiguration : Type -> Microsoft.EntityFrameworkCore.Metadata.ITypeMappingConfiguration
Public Function FindTypeMappingConfiguration (scalarType As Type) As ITypeMappingConfiguration

參數

scalarType
Type

CLR 型別。

傳回

預先慣例組態,如果找不到,則 null 為 。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於