RelationalTypeMapping.WithStoreTypeAndSize 方法

定义

创建此映射的副本。

public virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping WithStoreTypeAndSize (string storeType, int? size);
abstract member WithStoreTypeAndSize : string * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
override this.WithStoreTypeAndSize : string * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overridable Function WithStoreTypeAndSize (storeType As String, size As Nullable(Of Integer)) As RelationalTypeMapping

参数

storeType
String

数据库类型的名称。

size
Nullable<Int32>

属性配置为存储的数据大小;如果未配置大小,则为 null。

返回

新创建的映射。

适用于