RelationalTypeMapping.WithStoreTypeAndSize Method

Definition

Creates a copy of this mapping.

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

Parameters

storeType
String

The name of the database type.

size
Nullable<Int32>

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

Returns

The newly created mapping.

Applies to