RelationalTypeMapper RelationalTypeMapper Class

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 abstract class RelationalTypeMapper : IRelationalTypeMapper
Public MustInherit Class RelationalTypeMapper
    Implements IRelationalTypeMapper
Inheritance
System.ObjectSystem.Object
RelationalTypeMapperRelationalTypeMapper
Implements

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

CreateMappingFromStoreType(String) CreateMappingFromStoreType(String)

Creates the mapping for the given database type.

System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
FindCustomMapping(IProperty) FindCustomMapping(IProperty)

Gets the relational database type for the given property, using a separate type mapper if needed. This base implementation uses custom mappers for string and byte array properties. Returns null if no mapping is found.

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.

GetByteArrayMapping(IProperty) GetByteArrayMapping(IProperty)

Gets the relational database type for the given byte array property.

GetClrTypeMappings() GetClrTypeMappings()

Gets the mappings from .NET types to database types.

GetColumnType(IProperty) GetColumnType(IProperty)

Gets column type for the given property.

System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
GetStoreTypeMappings() GetStoreTypeMappings()

Gets the mappings from database types to .NET types.

GetStringMapping(IProperty) GetStringMapping(IProperty)

Gets the relational database type for the given string property.

System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
RequiresKeyMapping(IProperty) RequiresKeyMapping(IProperty)

Gets a value indicating whether the given property should use a database type that is suitable for key properties.

System.Object.ToString() System.Object.ToString() Inherited from System.Object
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)