IRelationalTypeMapper IRelationalTypeMapper Interface

Definition

Maps .NET types to their corresponding relational database types.

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

Properties

ByteArrayMapper ByteArrayMapper

Gets the mapper to be used for byte array properties.

StringMapper StringMapper

Gets the mapper to be used for string properties.

Methods

FindMapping(IProperty) FindMapping(IProperty)

Gets the relational database type for the given property. Returns null if no mapping is found.

FindMapping(String) FindMapping(String)

Gets the mapping that represents the given database type. Returns null if no mapping is found.

FindMapping(Type) FindMapping(Type)

Gets the relational database type for a given .NET type. Returns null if no mapping is found.

ValidateTypeName(String) 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

Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.GetMappingForValue(System.Object) Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.GetMappingForValue(System.Object)
Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.GetMapping(IProperty) Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.GetMapping(IProperty)
Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.GetMapping(System.Type) Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.GetMapping(System.Type)
Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.GetMapping(System.String) Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.GetMapping(System.String)
Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.IsTypeMapped(System.Type) Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapperExtensions.IsTypeMapped(System.Type)