IRelationalTypeMapper Interface
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.
Caution
Use IRelationalTypeMappingSource.
Maps .NET types to their corresponding relational database types.
Note: Use IRelationalTypeMappingSource going forward.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
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
- Derived
- Attributes
- Implements
Properties
ByteArrayMapper |
Gets the mapper to be used for byte array properties. |
StringMapper |
Gets the mapper to be used for string properties. |
Methods
FindMapping(IProperty) |
Gets the relational database type for the given property. Returns null if no mapping is found. |
FindMapping(String) |
Gets the mapping that represents the given database type. Returns null if no mapping is found. |
FindMapping(Type) |
Gets the relational database type for a given .NET type. Returns null if no mapping is found. |
IsTypeMapped(Type) |
Gets a value indicating whether the given .NET type is mapped. (Inherited from ITypeMapper) |
ValidateTypeName(String) |
Ensures that the given type name is a valid type for the relational database. An exception is thrown if it is not a valid type. |
Extension Methods
GetMapping(IRelationalTypeMapper, IProperty) |
Obsolete.
Gets the relational database type for a given property, throwing if no mapping is found. |
GetMapping(IRelationalTypeMapper, String) |
Obsolete.
Gets the mapping that represents the given database type, throwing if no mapping is found. Note that sometimes the same store type can have different mappings; this method returns the default. |
GetMapping(IRelationalTypeMapper, Type) |
Obsolete.
Gets the relational database type for a given .NET type, throwing if no mapping is found. |
GetMappingForValue(IRelationalTypeMapper, Object) |
Obsolete.
Gets the relational database type for a given object, throwing if no mapping is found. |
IsTypeMapped(IRelationalTypeMapper, Type) |
Gets a value indicating whether the given .NET type is mapped. |
Applies to
Entity Framework