Share via


IRelationalTypeMapper 介面

定義

警告

Use IRelationalTypeMappingSource.

將 .NET 類型對應至其對應的關係資料庫類型。

注意:請繼續使用 IRelationalTypeMappingSource

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

public interface IRelationalTypeMapper
public interface IRelationalTypeMapper : Microsoft.EntityFrameworkCore.Storage.ITypeMapper
[System.Obsolete("Use IRelationalTypeMappingSource.")]
public interface IRelationalTypeMapper : Microsoft.EntityFrameworkCore.Storage.ITypeMapper
type IRelationalTypeMapper = interface
type IRelationalTypeMapper = interface
    interface ITypeMapper
[<System.Obsolete("Use IRelationalTypeMappingSource.")>]
type IRelationalTypeMapper = interface
    interface ITypeMapper
Public Interface IRelationalTypeMapper
Public Interface IRelationalTypeMapper
Implements ITypeMapper
衍生
屬性
實作

屬性

ByteArrayMapper
已淘汰.

取得要用於位元組陣列屬性的對應器。

StringMapper
已淘汰.

取得要用於字串屬性的對應器。

方法

FindMapping(IProperty)
已淘汰.

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

FindMapping(String)
已淘汰.

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

FindMapping(Type)
已淘汰.

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

IsTypeMapped(Type)
已淘汰.

取得值,指出指定的 .NET 類型是否對應。

(繼承來源 ITypeMapper)
ValidateTypeName(String)
已淘汰.

確定指定的型別名稱是關係資料庫的有效型別。 如果例外狀況不是有效的類型,則會擲回例外狀況。

擴充方法

GetMapping(IRelationalTypeMapper, IProperty)
已淘汰.

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

GetMapping(IRelationalTypeMapper, String)
已淘汰.

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

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

GetMapping(IRelationalTypeMapper, Type)
已淘汰.

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

GetMappingForValue(IRelationalTypeMapper, Object)
已淘汰.

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

IsTypeMapped(IRelationalTypeMapper, Type)
已淘汰.

取得值,指出指定的 .NET 類型是否對應。

適用於