共用方式為


ITypeMappingSource.FindMapping 方法

定義

多載

FindMapping(IElementType)

尋找指定 IElementType 之 的型別對應。

FindMapping(IProperty)

尋找指定 IProperty 之 的型別對應。

FindMapping(MemberInfo)

尋找代表 CLR 型別之欄位或屬性的指定 MemberInfo 型別對應。

FindMapping(Type)

尋找指定 Type 之 的型別對應。

FindMapping(Type, IModel)

尋找指定 Type 的類型對應,並將預先慣例組態納入帳戶中。

FindMapping(Type, IModel, CoreTypeMapping)

尋找指定 Type 的類型對應,並將預先慣例組態納入帳戶中。

FindMapping(IElementType)

尋找指定 IElementType 之 的型別對應。

public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (Microsoft.EntityFrameworkCore.Metadata.IElementType elementType);
abstract member FindMapping : Microsoft.EntityFrameworkCore.Metadata.IElementType -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (elementType As IElementType) As CoreTypeMapping

參數

elementType
IElementType

集合專案。

傳回

類型對應,如果找不到,則 null 為 。

適用於

FindMapping(IProperty)

尋找指定 IProperty 之 的型別對應。

public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member FindMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (property As IProperty) As CoreTypeMapping

參數

property
IProperty

屬性。

傳回

類型對應,如果找不到,則 null 為 。

適用於

FindMapping(MemberInfo)

尋找代表 CLR 型別之欄位或屬性的指定 MemberInfo 型別對應。

public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping (System.Reflection.MemberInfo member);
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (System.Reflection.MemberInfo member);
abstract member FindMapping : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (member As MemberInfo) As CoreTypeMapping

參數

member
MemberInfo

欄位或屬性。

傳回

類型對應,如果找不到,則 null 為 。

備註

注意:只有在沒有 IProperty 可用時呼叫這個方法,否則呼叫 FindMapping(IProperty)

適用於

FindMapping(Type)

尋找指定 Type 之 的型別對應。

public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping (Type type);
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (Type type);
abstract member FindMapping : Type -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (type As Type) As CoreTypeMapping

參數

type
Type

CLR 型別。

傳回

類型對應,如果找不到,則 null 為 。

備註

注意:只有在沒有 IPropertyIModel 可用時,才呼叫這個方法,否則請呼叫 FindMapping(IProperty)FindMapping(Type, IModel, CoreTypeMapping)

適用於

FindMapping(Type, IModel)

尋找指定 Type 的類型對應,並將預先慣例組態納入帳戶中。

public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (Type type, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member FindMapping : Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (type As Type, model As IModel) As CoreTypeMapping

參數

type
Type

CLR 型別。

model
IModel

模型本身。

傳回

類型對應,如果找不到,則 null 為 。

備註

注意:只有在沒有 IProperty 時呼叫這個方法,否則請呼叫 FindMapping(IProperty)

適用於

FindMapping(Type, IModel, CoreTypeMapping)

尋找指定 Type 的類型對應,並將預先慣例組態納入帳戶中。

public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (Type type, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? elementMapping = default);
abstract member FindMapping : Type * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (type As Type, model As IModel, Optional elementMapping As CoreTypeMapping = Nothing) As CoreTypeMapping

參數

type
Type

CLR 型別。

model
IModel

模型本身。

elementMapping
CoreTypeMapping

如果已知,則為要使用的專案對應。

傳回

類型對應,如果找不到,則 null 為 。

備註

注意:只有在沒有 IProperty 時呼叫這個方法,否則請呼叫 FindMapping(IProperty)

適用於