RelationalTypeMapping.Clone Method

Definition

Overloads

Clone(String, Nullable<Int32>)

Creates a copy of this mapping.

Clone(Nullable<Int32>, Nullable<Int32>)

Creates a copy of this mapping.

Clone(ValueConverter)

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

Clone(RelationalTypeMappingInfo)

Clones the type mapping to update facets from the mapping info, if needed.

Clone(RelationalTypeMapping+RelationalTypeMappingParameters)

Creates a copy of this mapping.

Clone(String, Nullable<Int32>)

Creates a copy of this mapping.

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

Clone(Nullable<Int32>, Nullable<Int32>)

Creates a copy of this mapping.

public virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping Clone (int? precision, int? scale);
override this.Clone : Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overridable Function Clone (precision As Nullable(Of Integer), scale As Nullable(Of Integer)) As RelationalTypeMapping

Parameters

precision
Nullable<Int32>

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

scale
Nullable<Int32>

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

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);
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(RelationalTypeMappingInfo)

Clones the type mapping to update facets from the mapping info, if needed.

public virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping Clone (Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo mappingInfo);
override this.Clone : RelationalTypeMappingInfo -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overridable Function Clone (mappingInfo As RelationalTypeMappingInfo) As RelationalTypeMapping

Parameters

mappingInfo
RelationalTypeMappingInfo

The mapping info containing the facets to use.

Returns

RelationalTypeMapping

The cloned mapping, or the original mapping if no clone was needed.

Applies to

Clone(RelationalTypeMapping+RelationalTypeMappingParameters)

Creates a copy of this mapping.

protected virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping Clone (Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters parameters);
protected abstract Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping Clone (Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters parameters);
override this.Clone : Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Protected Overridable Function Clone (parameters As RelationalTypeMapping.RelationalTypeMappingParameters) As RelationalTypeMapping
Protected MustOverride 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