RelationalTypeMappingSourceExtensions.GetMappingForValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetMappingForValue(IRelationalTypeMappingSource, Object) |
Gets the relational database type for a given object, throwing if no mapping is found. |
GetMappingForValue(IRelationalTypeMappingSource, Object, IModel) |
Gets the relational database type for a given object, throwing if no mapping is found. |
GetMappingForValue(IRelationalTypeMappingSource, Object)
Gets the relational database type for a given object, throwing if no mapping is found.
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
Parameters
- typeMappingSource
- IRelationalTypeMappingSource
The type mapping source.
- value
- Object
The object to get the mapping for.
Returns
The type mapping to be used.
Applies to
GetMappingForValue(IRelationalTypeMappingSource, Object, IModel)
Gets the relational database type for a given object, throwing if no mapping is found.
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
Parameters
- typeMappingSource
- IRelationalTypeMappingSource
The type mapping source.
- value
- Object
The object to get the mapping for.
- model
- IModel
The model.
Returns
The type mapping to be used.
Applies to
Entity Framework