共用方式為


IStringRelationalTypeMapper.FindMapping 方法

定義

取得字串屬性的關係資料庫類型。

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

參數

unicode
Boolean

值,指出 屬性是否應該處理 Unicode 資料。

keyOrIndex
Boolean

值,指出 屬性是否為索引鍵的一部分。

maxLength
Nullable<Int32>

屬性設定為儲存的資料長度上限,如果未設定最大值,則為 null。

傳回

要使用的型別對應。

適用於