次の方法で共有


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

マッピングを取得する型。

戻り値

使用する型マッピング。

属性

適用対象