Share via


IStringRelationalTypeMapper.FindMapping Method

Definition

Gets the relational database type for a string property.

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (bool unicode, bool keyOrIndex, int? maxLength);
abstract member FindMapping : bool * bool * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (unicode As Boolean, keyOrIndex As Boolean, maxLength As Nullable(Of Integer)) As RelationalTypeMapping

Parameters

unicode
Boolean

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

keyOrIndex
Boolean

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

maxLength
Nullable<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.

Applies to