IModel.FindTypeMappingConfiguration(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
尋找指定純量 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
為 。
備註
如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。