StringRelationalTypeMapper StringRelationalTypeMapper Class

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 class StringRelationalTypeMapper : IStringRelationalTypeMapper
Public Class StringRelationalTypeMapper
    Implements IStringRelationalTypeMapper
Inheritance
System.ObjectSystem.Object
StringRelationalTypeMapperStringRelationalTypeMapper
Implements

Constructors

StringRelationalTypeMapper(Int32, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, Func, Int32, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, Func) StringRelationalTypeMapper(Int32, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, Func(Of Int32, RelationalTypeMapping), Int32, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, Func(Of Int32, RelationalTypeMapping))

Initializes a new instance of the StringRelationalTypeMapper class.

public StringRelationalTypeMapper(int maxBoundedAnsiLength, RelationalTypeMapping defaultAnsiMapping, RelationalTypeMapping unboundedAnsiMapping, RelationalTypeMapping keyAnsiMapping, Func<int, RelationalTypeMapping> createBoundedAnsiMapping, int maxBoundedUnicodeLength, RelationalTypeMapping defaultUnicodeMapping, RelationalTypeMapping unboundedUnicodeMapping, RelationalTypeMapping keyUnicodeMapping, Func<int, RelationalTypeMapping> createBoundedUnicodeMapping)
Public Sub New(maxBoundedAnsiLength As Integer, defaultAnsiMapping As RelationalTypeMapping, unboundedAnsiMapping As RelationalTypeMapping, keyAnsiMapping As RelationalTypeMapping, createBoundedAnsiMapping As Func(Of Integer, RelationalTypeMapping), maxBoundedUnicodeLength As Integer, defaultUnicodeMapping As RelationalTypeMapping, unboundedUnicodeMapping As RelationalTypeMapping, keyUnicodeMapping As RelationalTypeMapping, createBoundedUnicodeMapping As Func(Of Integer, RelationalTypeMapping))
Parameters
maxBoundedAnsiLength
System.Int32 System.Int32

The maximum length of a bounded ANSI string.

defaultAnsiMapping
RelationalTypeMapping RelationalTypeMapping

The default mapping of an ANSI string.

unboundedAnsiMapping
RelationalTypeMapping RelationalTypeMapping

The mapping for an unbounded ANSI string.

keyAnsiMapping
RelationalTypeMapping RelationalTypeMapping

The mapping for an ANSI string that is part of a key.

createBoundedAnsiMapping
System.Func<System.Int32, RelationalTypeMapping> System.Func(Of System.Int32, RelationalTypeMapping)

The function to create a mapping for a bounded ANSI string.

maxBoundedUnicodeLength
System.Int32 System.Int32

The maximum length of a bounded Unicode string.

defaultUnicodeMapping
RelationalTypeMapping RelationalTypeMapping

The default mapping of a Unicode string.

unboundedUnicodeMapping
RelationalTypeMapping RelationalTypeMapping

The mapping for an unbounded Unicode string.

keyUnicodeMapping
RelationalTypeMapping RelationalTypeMapping

The mapping for a Unicode string that is part of a key.

createBoundedUnicodeMapping
System.Func<System.Int32, RelationalTypeMapping> System.Func(Of System.Int32, RelationalTypeMapping)

The function to create a mapping for a bounded Unicode string.

Properties

CreateBoundedAnsiMapping CreateBoundedAnsiMapping

Gets the function to create a mapping for a bounded ANSI string.

public virtual Func<int, RelationalTypeMapping> CreateBoundedAnsiMapping { get; }
Public Overridable ReadOnly Property CreateBoundedAnsiMapping As Func(Of Integer, RelationalTypeMapping)
Value
System.Func<System.Int32, RelationalTypeMapping> System.Func(Of System.Int32, RelationalTypeMapping)

CreateBoundedUnicodeMapping CreateBoundedUnicodeMapping

Gets the function to create a mapping for a bounded Unicode string.

public virtual Func<int, RelationalTypeMapping> CreateBoundedUnicodeMapping { get; }
Public Overridable ReadOnly Property CreateBoundedUnicodeMapping As Func(Of Integer, RelationalTypeMapping)
Value
System.Func<System.Int32, RelationalTypeMapping> System.Func(Of System.Int32, RelationalTypeMapping)

DefaultAnsiMapping DefaultAnsiMapping

Gets the default mapping of an ANSI string.

public virtual RelationalTypeMapping DefaultAnsiMapping { get; }
Public Overridable ReadOnly Property DefaultAnsiMapping As RelationalTypeMapping

DefaultUnicodeMapping DefaultUnicodeMapping

Gets the default mapping of a Unicode string.

public virtual RelationalTypeMapping DefaultUnicodeMapping { get; }
Public Overridable ReadOnly Property DefaultUnicodeMapping As RelationalTypeMapping

KeyAnsiMapping KeyAnsiMapping

Gets the mapping for an ANSI string that is part of a key.

public virtual RelationalTypeMapping KeyAnsiMapping { get; }
Public Overridable ReadOnly Property KeyAnsiMapping As RelationalTypeMapping

KeyUnicodeMapping KeyUnicodeMapping

Gets the mapping for a Unicode string that is part of a key.

public virtual RelationalTypeMapping KeyUnicodeMapping { get; }
Public Overridable ReadOnly Property KeyUnicodeMapping As RelationalTypeMapping

MaxBoundedAnsiLength MaxBoundedAnsiLength

Gets the maximum length of a bounded ANSI string.

public virtual int MaxBoundedAnsiLength { get; }
Public Overridable ReadOnly Property MaxBoundedAnsiLength As Integer
Value
System.Int32 System.Int32

MaxBoundedUnicodeLength MaxBoundedUnicodeLength

Gets the maximum length of a bounded Unicode string.

public virtual int MaxBoundedUnicodeLength { get; }
Public Overridable ReadOnly Property MaxBoundedUnicodeLength As Integer
Value
System.Int32 System.Int32

UnboundedAnsiMapping UnboundedAnsiMapping

Gets the mapping for an unbounded ANSI string.

public virtual RelationalTypeMapping UnboundedAnsiMapping { get; }
Public Overridable ReadOnly Property UnboundedAnsiMapping As RelationalTypeMapping

UnboundedUnicodeMapping UnboundedUnicodeMapping

Gets the mapping for an unbounded Unicode string.

public virtual RelationalTypeMapping UnboundedUnicodeMapping { get; }
Public Overridable ReadOnly Property UnboundedUnicodeMapping As RelationalTypeMapping

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

FindMapping(Boolean, Boolean, Nullable) FindMapping(Boolean, Boolean, Nullable(Of Int32))

Gets the relational database type for a string property.

public virtual RelationalTypeMapping FindMapping(bool unicode, bool keyOrIndex, int ? maxLength)
Public Overridable 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.

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object