RelationalTypeMappingSourceExtensions.GetMappingForValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetMappingForValue(IRelationalTypeMappingSource, Object) |
取得指定物件的關係資料庫類型,如果找不到對應,則會擲回。 |
GetMappingForValue(IRelationalTypeMappingSource, Object, IModel) |
取得指定物件的關係資料庫類型,如果找不到對應,則會擲回。 |
GetMappingForValue(IRelationalTypeMappingSource, Object)
取得指定物件的關係資料庫類型,如果找不到對應,則會擲回。
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMappingForValue (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, object value);
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMappingForValue (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, object? value);
static member GetMappingForValue : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * obj -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMappingForValue (typeMappingSource As IRelationalTypeMappingSource, value As Object) As RelationalTypeMapping
參數
- typeMappingSource
- IRelationalTypeMappingSource
類型對應來源。
- value
- Object
要為其取得對應的物件。
傳回
要使用的型別對應。
適用於
GetMappingForValue(IRelationalTypeMappingSource, Object, IModel)
取得指定物件的關係資料庫類型,如果找不到對應,則會擲回。
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMappingForValue (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, object? value, Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetMappingForValue : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * obj * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMappingForValue (typeMappingSource As IRelationalTypeMappingSource, value As Object, model As IModel) As RelationalTypeMapping
參數
- typeMappingSource
- IRelationalTypeMappingSource
類型對應來源。
- value
- Object
要為其取得對應的物件。
- model
- IModel
模型本身。
傳回
要使用的型別對應。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應