RelationalTypeMapping.Clone Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
The size of data the property is configured to store, or null if no size is configured.
Returns
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
The precision of data the property is configured to store, or null if no size is configured.
The scale of data the property is configured to store, or null if no size is configured.
Returns
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
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
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
The parameters for this mapping.
Returns
The newly created mapping.
Applies to
Feedback
Submit and view feedback for