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.

IByteArrayRelationalTypeMapper ByteArrayMapper { get; }
ReadOnly Property ByteArrayMapper As IByteArrayRelationalTypeMapper

StringMapper StringMapper

Gets the mapper to be used for string properties.

IStringRelationalTypeMapper StringMapper { get; }
ReadOnly Property StringMapper As IStringRelationalTypeMapper

Methods

FindMapping(IProperty) FindMapping(IProperty)

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

RelationalTypeMapping FindMapping(IProperty property)
Function FindMapping(property As IProperty) As RelationalTypeMapping
Parameters
property
IProperty IProperty

The property to get the mapping for.

Returns

The type mapping to be used.

FindMapping(String) FindMapping(String)

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

RelationalTypeMapping FindMapping(string storeType)
Function FindMapping(storeType As String) As RelationalTypeMapping
Parameters
storeType
System.String System.String

The type to get the mapping for.

Returns

The type mapping to be used.

FindMapping(Type) FindMapping(Type)

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

RelationalTypeMapping FindMapping(Type clrType)
Function FindMapping(clrType As Type) As RelationalTypeMapping
Parameters
clrType
System.Type System.Type

The type to get the mapping for.

Returns

The type mapping to be used.

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.

void ValidateTypeName(string storeType)
Sub ValidateTypeName(storeType As String)
Parameters
storeType
System.String System.String

The type to be validated.