SByteTypeMapping.Clone Method

Definition

Overloads

Clone(RelationalTypeMapping+RelationalTypeMappingParameters)

Creates a copy of this mapping.

Clone(ValueConverter)

Returns a new copy of this type mapping with the given ValueConverter added.

Clone(String, Nullable<Int32>)

Creates a copy of this mapping.

Clone(RelationalTypeMapping+RelationalTypeMappingParameters)

Creates a copy of this mapping.

protected override Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping Clone (Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters parameters);
override this.Clone : Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Protected Overrides Function Clone (parameters As RelationalTypeMapping.RelationalTypeMappingParameters) As RelationalTypeMapping

Parameters

parameters
RelationalTypeMapping.RelationalTypeMappingParameters

The parameters for this mapping.

Returns

RelationalTypeMapping

The newly created mapping.

Applies to

Clone(ValueConverter)

Returns a new copy of this type mapping with the given ValueConverter added.

public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping Clone (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter converter);
override this.Clone : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Overrides Function Clone (converter As ValueConverter) As CoreTypeMapping

Parameters

converter
ValueConverter

The converter to use.

Returns

CoreTypeMapping

A new type mapping

Applies to

Clone(String, Nullable<Int32>)

Creates a copy of this mapping.

public override Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping Clone (string storeType, int? size);
override this.Clone : string * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overrides Function Clone (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

RelationalTypeMapping

The newly created mapping.

Applies to