IStringRelationalTypeMapper IStringRelationalTypeMapper Interface

Maps string property 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 IStringRelationalTypeMapperPublic Interface IStringRelationalTypeMapper

Methods summary

Gets the relational database type for a string property.

Methods

  • FindMapping(Boolean, Boolean, Nullable<Int32>)
    FindMapping(Boolean, Boolean, Nullable(Of Int32))

    Gets the relational database type for a string property.

    RelationalTypeMapping FindMapping(bool unicode, bool keyOrIndex, int ? maxLength)Function FindMapping(unicode As Boolean, keyOrIndex As Boolean, maxLength As Integer?) As RelationalTypeMapping

    Parameters

    • unicode
      System.Boolean
      System.Boolean

      A value indicating whether the property should handle Unicode data or not.

    • keyOrIndex
      System.Boolean
      System.Boolean

      A value indicating whether the property is part of a key or not.

    • maxLength
      System.Nullable<T><System.Int32>
      System.Nullable<T>(Of System.Int32)

      The maximum length of data the property is configured to store, or null if no maximum is configured.

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll