IRelationalTypeMapper 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 類型是否對應。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應