共用方式為


RelationalTypeMappingSourceExtensions.GetMapping 方法

定義

多載

GetMapping(IRelationalTypeMappingSource, IProperty)

取得指定屬性的關係資料庫類型,如果找不到對應,則會擲回 。

GetMapping(IRelationalTypeMappingSource, String)

取得表示指定資料庫類型的對應,如果找不到對應,則會擲回。

GetMapping(IRelationalTypeMappingSource, Type)

取得指定 .NET 類型的關係資料庫類型,如果找不到對應,則會擲回。

GetMapping(IRelationalTypeMappingSource, Type, IModel)

取得指定 .NET 類型的關係資料庫類型,如果找不到對應,則會擲回。

GetMapping(IRelationalTypeMappingSource, IProperty)

取得指定屬性的關係資料庫類型,如果找不到對應,則會擲回 。

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMappingSource As IRelationalTypeMappingSource, property As IProperty) As RelationalTypeMapping

參數

typeMappingSource
IRelationalTypeMappingSource

類型對應來源。

property
IProperty

要為其取得對應的屬性。

傳回

要使用的型別對應。

適用於

GetMapping(IRelationalTypeMappingSource, String)

取得表示指定資料庫類型的對應,如果找不到對應,則會擲回。

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, string typeName);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMappingSource As IRelationalTypeMappingSource, typeName As String) As RelationalTypeMapping

參數

typeMappingSource
IRelationalTypeMappingSource

類型對應來源。

typeName
String

要為其取得對應的類型。

傳回

要使用的型別對應。

備註

請注意,有時候相同的存放區類型可以有不同的對應;這個方法會傳回預設值。

適用於

GetMapping(IRelationalTypeMappingSource, Type)

取得指定 .NET 類型的關係資料庫類型,如果找不到對應,則會擲回。

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Type clrType);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMappingSource As IRelationalTypeMappingSource, clrType As Type) As RelationalTypeMapping

參數

typeMappingSource
IRelationalTypeMappingSource

類型對應來源。

clrType
Type

要為其取得對應的類型。

傳回

要使用的型別對應。

適用於

GetMapping(IRelationalTypeMappingSource, Type, IModel)

取得指定 .NET 類型的關係資料庫類型,如果找不到對應,則會擲回。

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Type clrType, Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMappingSource As IRelationalTypeMappingSource, clrType As Type, model As IModel) As RelationalTypeMapping

參數

typeMappingSource
IRelationalTypeMappingSource

類型對應來源。

clrType
Type

要為其取得對應的類型。

model
IModel

模型本身。

傳回

要使用的型別對應。

適用於