IRelationalTypeMapper IRelationalTypeMapper Interface

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.

Syntax

Declaration

public interface IRelationalTypeMapperPublic Interface IRelationalTypeMapper

Properties summary

Gets the mapper to be used for byte array properties.

Gets the mapper to be used for string properties.

Methods summary

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

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

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

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.

Properties

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

    Returns

  • 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

  • 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

  • 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.

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll