ByteArrayTypeMapping.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(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
The parameters for this mapping.
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);
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(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.
The size of data the property is configured to store, or null if no size is configured.
Returns
The newly created mapping.
Applies to
Entity Framework