diff --git a/src/EFCore.MySql/Storage/Internal/MySqlBoolTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlBoolTypeMapping.cs index 491b925fe..e670ef459 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlBoolTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlBoolTypeMapping.cs @@ -42,18 +42,12 @@ protected MySqlBoolTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlBoolTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlBoolTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlBoolTypeMapping(parameters); /// /// Generates the SQL representation of a literal value. diff --git a/src/EFCore.MySql/Storage/Internal/MySqlByteArrayTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlByteArrayTypeMapping.cs index 08d2def17..a7651902d 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlByteArrayTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlByteArrayTypeMapping.cs @@ -73,18 +73,12 @@ protected MySqlByteArrayTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlByteArrayTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlByteArrayTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlByteArrayTypeMapping(parameters); private static int CalculateSize(int? size) => size.HasValue && size < MaxSize ? size.Value : MaxSize; diff --git a/src/EFCore.MySql/Storage/Internal/MySqlDateTimeOffsetTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlDateTimeOffsetTypeMapping.cs index 9867140f1..ab43c4cba 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlDateTimeOffsetTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlDateTimeOffsetTypeMapping.cs @@ -50,18 +50,12 @@ protected MySqlDateTimeOffsetTypeMapping(RelationalTypeMappingParameters paramet } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlDateTimeOffsetTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlDateTimeOffsetTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlDateTimeOffsetTypeMapping(parameters); /// /// Gets the string format to be used to generate SQL literals of this type. diff --git a/src/EFCore.MySql/Storage/Internal/MySqlDateTimeTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlDateTimeTypeMapping.cs index 7b2470a53..d614fdb86 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlDateTimeTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlDateTimeTypeMapping.cs @@ -52,18 +52,12 @@ protected MySqlDateTimeTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlDateTimeTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlDateTimeTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlDateTimeTypeMapping(parameters); /// /// Gets the string format to be used to generate SQL literals of this type. diff --git a/src/EFCore.MySql/Storage/Internal/MySqlDateTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlDateTypeMapping.cs index d368407b0..512148f36 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlDateTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlDateTypeMapping.cs @@ -43,18 +43,12 @@ protected MySqlDateTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlDateTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlDateTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlDateTypeMapping(parameters); /// /// Gets the string format to be used to generate SQL literals of this type. diff --git a/src/EFCore.MySql/Storage/Internal/MySqlDecimalTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlDecimalTypeMapping.cs index 463c97404..70ffac2f0 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlDecimalTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlDecimalTypeMapping.cs @@ -38,18 +38,12 @@ protected MySqlDecimalTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlDecimalTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlDecimalTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlDecimalTypeMapping(parameters); /// /// This API supports the Entity Framework Core infrastructure and is not intended to be used diff --git a/src/EFCore.MySql/Storage/Internal/MySqlDoubleTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlDoubleTypeMapping.cs index cd0f76129..64b064f84 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlDoubleTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlDoubleTypeMapping.cs @@ -37,17 +37,11 @@ protected MySqlDoubleTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlDoubleTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlDoubleTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlDoubleTypeMapping(parameters); } } diff --git a/src/EFCore.MySql/Storage/Internal/MySqlFloatTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlFloatTypeMapping.cs index ae8891be4..9df23eec3 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlFloatTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlFloatTypeMapping.cs @@ -38,18 +38,12 @@ protected MySqlFloatTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlFloatTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlFloatTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlFloatTypeMapping(parameters); /// /// This API supports the Entity Framework Core infrastructure and is not intended to be used diff --git a/src/EFCore.MySql/Storage/Internal/MySqlJsonTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlJsonTypeMapping.cs index a6890dc18..b361df50d 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlJsonTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlJsonTypeMapping.cs @@ -66,18 +66,12 @@ protected MySqlJsonTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlJsonTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlJsonTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlJsonTypeMapping(parameters); /// /// Generates the escaped SQL representation of a literal value. diff --git a/src/EFCore.MySql/Storage/Internal/MySqlOldGuidTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlOldGuidTypeMapping.cs index ea97be07d..2759f3d3e 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlOldGuidTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlOldGuidTypeMapping.cs @@ -37,17 +37,11 @@ protected sealed override string GenerateNonNullSqlLiteral([CanBeNull] object va => ByteArrayFormatter.ToHex(((Guid)value).ToByteArray()); /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlOldGuidTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlOldGuidTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlOldGuidTypeMapping(parameters); } } diff --git a/src/EFCore.MySql/Storage/Internal/MySqlStringTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlStringTypeMapping.cs index e9fff4edb..6eb0adb78 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlStringTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlStringTypeMapping.cs @@ -62,18 +62,12 @@ private static int CalculateSize(bool unicode, int? size) : size.HasValue && size <= AnsiMax ? size.Value : AnsiMax; /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlStringTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlStringTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlStringTypeMapping(parameters); /// /// This API supports the Entity Framework Core infrastructure and is not intended to be used diff --git a/src/EFCore.MySql/Storage/Internal/MySqlTimeSpanTypeMapping.cs b/src/EFCore.MySql/Storage/Internal/MySqlTimeSpanTypeMapping.cs index b7f870efd..ad57956cd 100644 --- a/src/EFCore.MySql/Storage/Internal/MySqlTimeSpanTypeMapping.cs +++ b/src/EFCore.MySql/Storage/Internal/MySqlTimeSpanTypeMapping.cs @@ -46,18 +46,12 @@ protected MySqlTimeSpanTypeMapping(RelationalTypeMappingParameters parameters) } /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. - /// - public override RelationalTypeMapping Clone(string storeType, int? size) - => new MySqlTimeSpanTypeMapping(Parameters.WithStoreTypeAndSize(storeType, size)); - - /// - /// This API supports the Entity Framework Core infrastructure and is not intended to be used - /// directly from your code. This API may change or be removed in future releases. + /// Creates a copy of this mapping. /// - public override CoreTypeMapping Clone(ValueConverter converter) - => new MySqlTimeSpanTypeMapping(Parameters.WithComposedConverter(converter)); + /// The parameters for this mapping. + /// The newly created mapping. + protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters) + => new MySqlTimeSpanTypeMapping(parameters); /// /// Gets the string format to be used to generate SQL literals of this type.