IStringRelationalTypeMapper IStringRelationalTypeMapper Interface

Definition

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.

public interface IStringRelationalTypeMapper
Public Interface IStringRelationalTypeMapper

Methods

FindMapping(Boolean, Boolean, Nullable) 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<System.Int32> System.Nullable(Of System.Int32)

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

Returns

The type mapping to be used.