共用方式為


RelationalTypeMapperExtensions.GetMapping 方法

定義

多載

GetMapping(IRelationalTypeMapper, IProperty)
已淘汰.

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

GetMapping(IRelationalTypeMapper, String)
已淘汰.

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

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

GetMapping(IRelationalTypeMapper, Type)
已淘汰.

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

GetMapping(IRelationalTypeMapper, IProperty)

警告

Use IRelationalTypeMappingSource instead.

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

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IRelationalTypeMappingSource instead.")]
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Use IRelationalTypeMappingSource instead.")>]
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMapper As IRelationalTypeMapper, property As IProperty) As RelationalTypeMapping

參數

typeMapper
IRelationalTypeMapper

類型對應器。

property
IProperty

要為其取得對應的屬性。

傳回

要使用的型別對應。

屬性

適用於

GetMapping(IRelationalTypeMapper, String)

警告

Use IRelationalTypeMappingSource instead.

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

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

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, string typeName);
[System.Obsolete("Use IRelationalTypeMappingSource instead.")]
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, string typeName);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Use IRelationalTypeMappingSource instead.")>]
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMapper As IRelationalTypeMapper, typeName As String) As RelationalTypeMapping

參數

typeMapper
IRelationalTypeMapper

類型對應器。

typeName
String

要為其取得對應的類型。

傳回

要使用的型別對應。

屬性

適用於

GetMapping(IRelationalTypeMapper, Type)

警告

Use IRelationalTypeMappingSource instead.

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

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Type clrType);
[System.Obsolete("Use IRelationalTypeMappingSource instead.")]
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Type clrType);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Use IRelationalTypeMappingSource instead.")>]
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMapper As IRelationalTypeMapper, clrType As Type) As RelationalTypeMapping

參數

typeMapper
IRelationalTypeMapper

類型對應器。

clrType
Type

要為其取得對應的類型。

傳回

要使用的型別對應。

屬性

適用於