RelationalTypeMapper 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Use RelationalTypeMappingSource.
將 .NET 類型對應至其對應的關係資料庫類型。
此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。
public abstract class RelationalTypeMapper : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper
public abstract class RelationalTypeMapper : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper, Microsoft.EntityFrameworkCore.Storage.ITypeMapper
[System.Obsolete("Use RelationalTypeMappingSource.")]
public abstract class RelationalTypeMapper : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper, Microsoft.EntityFrameworkCore.Storage.ITypeMapper
type RelationalTypeMapper = class
interface IRelationalTypeMapper
type RelationalTypeMapper = class
interface IRelationalTypeMapper
interface ITypeMapper
[<System.Obsolete("Use RelationalTypeMappingSource.")>]
type RelationalTypeMapper = class
interface IRelationalTypeMapper
interface ITypeMapper
Public MustInherit Class RelationalTypeMapper
Implements IRelationalTypeMapper
Public MustInherit Class RelationalTypeMapper
Implements IRelationalTypeMapper, ITypeMapper
- 繼承
-
RelationalTypeMapper
- 屬性
- 實作
建構函式
RelationalTypeMapper() |
已淘汰.
將 .NET 類型對應至其對應的關係資料庫類型。 此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。 |
RelationalTypeMapper(RelationalTypeMapperDependencies) |
已淘汰.
初始化這個類別的新實例。 |
屬性
ByteArrayMapper |
已淘汰.
取得要用於位元組陣列屬性的對應器。 |
StringMapper |
已淘汰.
取得要用於字串屬性的對應器。 |
方法
CreateMappingFromStoreType(String) |
已淘汰.
建立指定資料庫類型的對應。 |
FindCustomMapping(IProperty) |
已淘汰.
視需要使用不同的類型對應器,取得指定屬性的關係資料庫類型。 這個基底實作會針對字串和位元組陣列屬性使用自訂對應器。 如果找不到對應,則傳回 null。 |
FindMapping(IProperty) |
已淘汰.
取得指定屬性的關係資料庫類型。 如果找不到對應,則傳回 null。 |
FindMapping(String) |
已淘汰.
取得表示指定資料庫類型的對應。 如果找不到對應,則傳回 null。 |
FindMapping(Type) |
已淘汰.
取得指定 .NET 類型的關係資料庫類型。 如果找不到對應,則傳回 null。 |
GetByteArrayMapping(IProperty) |
已淘汰.
取得指定位元組陣列屬性的關係資料庫類型。 |
GetClrTypeMappings() |
已淘汰.
取得從 .NET 型別到資料庫類型的對應。 |
GetColumnType(IProperty) |
已淘汰.
取得指定屬性的資料行類型。 |
GetStoreTypeMappings() |
已淘汰.
取得從資料庫類型到 .NET 類型的對應。 |
GetStringMapping(IProperty) |
已淘汰.
取得指定字串屬性的關係資料庫類型。 |
IsTypeMapped(Type) |
已淘汰.
取得值,指出指定的 .NET 類型是否對應。 |
RequiresKeyMapping(IProperty) |
已淘汰.
取得值,指出指定的屬性是否應該使用適合索引鍵屬性的資料庫類型。 |
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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應