Skip to content

Commit aa8a3e8

Browse files
Copilotrenemadsen
andcommitted
Fix BigModel GetHashCode casting syntax - remove extra closing parenthesis (22 occurrences)
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent fd78c2f commit aa8a3e8

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

test/EFCore.MySql.FunctionalTests/Scaffolding/Baselines/BigModel/DataEntityType.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
105105
byte[] (byte[] v) => v),
106106
keyComparer: new ValueComparer<byte[]>(
107107
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
108-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
108+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
109109
byte[] (byte[] source) => source.ToArray()),
110110
providerValueComparer: new ValueComparer<byte[]>(
111111
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
112-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
112+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
113113
byte[] (byte[] source) => source.ToArray()));
114114
blob.AddAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.None);
115115

test/EFCore.MySql.FunctionalTests/Scaffolding/Baselines/BigModel/ManyTypesEntityType.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,11 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
486486
byte[] (byte[] v) => v),
487487
keyComparer: new ValueComparer<byte[]>(
488488
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
489-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
489+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
490490
byte[] (byte[] source) => source.ToArray()),
491491
providerValueComparer: new ValueComparer<byte[]>(
492492
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
493-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
493+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
494494
byte[] (byte[] source) => source.ToArray()));
495495
bytes.AddAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.None);
496496

@@ -552,11 +552,11 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
552552
byte[] (byte[] v) => v),
553553
keyComparer: new ValueComparer<byte[]>(
554554
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
555-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
555+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
556556
byte[] (byte[] source) => source.ToArray()),
557557
providerValueComparer: new ValueComparer<byte[]>(
558558
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
559-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
559+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
560560
byte[] (byte[] source) => source.ToArray())));
561561
var bytesArrayElementType = bytesArray.SetElementType(typeof(byte[]));
562562
bytesArrayElementType.TypeMapping = bytesArray.TypeMapping.ElementTypeMapping;
@@ -602,7 +602,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
602602
byte[] (byte[] v) => v),
603603
keyComparer: new ValueComparer<byte[]>(
604604
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
605-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
605+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
606606
byte[] (byte[] source) => source.ToArray()),
607607
providerValueComparer: new ValueComparer<string>(
608608
bool (string v1, string v2) => v1 == v2,
@@ -1275,7 +1275,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
12751275
DateTimeOffset (DateTimeOffset v) => v),
12761276
providerValueComparer: new ValueComparer<byte[]>(
12771277
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
1278-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
1278+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
12791279
byte[] (byte[] source) => source.ToArray()),
12801280
mappingInfo: new RelationalTypeMappingInfo(
12811281
storeTypeName: "varbinary(12)",
@@ -1674,7 +1674,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
16741674
decimal (decimal v) => v),
16751675
providerValueComparer: new ValueComparer<byte[]>(
16761676
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
1677-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
1677+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
16781678
byte[] (byte[] source) => source.ToArray()),
16791679
mappingInfo: new RelationalTypeMappingInfo(
16801680
storeTypeName: "varbinary(16)",
@@ -1908,7 +1908,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
19081908
double (double v) => v),
19091909
providerValueComparer: new ValueComparer<byte[]>(
19101910
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
1911-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
1911+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
19121912
byte[] (byte[] source) => source.ToArray()),
19131913
mappingInfo: new RelationalTypeMappingInfo(
19141914
storeTypeName: "varbinary(8)",
@@ -6036,7 +6036,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
60366036
Guid (Guid v) => v),
60376037
providerValueComparer: new ValueComparer<byte[]>(
60386038
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
6039-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
6039+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
60406040
byte[] (byte[] source) => source.ToArray()),
60416041
mappingInfo: new RelationalTypeMappingInfo(
60426042
storeTypeName: "varbinary(16)",
@@ -6387,7 +6387,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
63876387
IPAddress (IPAddress v) => v),
63886388
providerValueComparer: new ValueComparer<byte[]>(
63896389
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
6390-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
6390+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
63916391
byte[] (byte[] source) => source.ToArray()),
63926392
mappingInfo: new RelationalTypeMappingInfo(
63936393
storeTypeName: "varbinary(16)",
@@ -7032,7 +7032,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
70327032
int (int v) => v),
70337033
providerValueComparer: new ValueComparer<byte[]>(
70347034
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
7035-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
7035+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
70367036
byte[] (byte[] source) => source.ToArray()),
70377037
mappingInfo: new RelationalTypeMappingInfo(
70387038
storeTypeName: "varbinary(4)",
@@ -7327,11 +7327,11 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
73277327
byte[] (byte[] v) => v),
73287328
keyComparer: new ValueComparer<byte[]>(
73297329
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
7330-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
7330+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
73317331
byte[] (byte[] source) => source.ToArray()),
73327332
providerValueComparer: new ValueComparer<byte[]>(
73337333
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
7334-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
7334+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
73357335
byte[] (byte[] source) => source.ToArray()));
73367336
nullableBytes.AddAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.None);
73377337

@@ -7393,11 +7393,11 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
73937393
byte[] (byte[] v) => v),
73947394
keyComparer: new ValueComparer<byte[]>(
73957395
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
7396-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
7396+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
73977397
byte[] (byte[] source) => source.ToArray()),
73987398
providerValueComparer: new ValueComparer<byte[]>(
73997399
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
7400-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
7400+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
74017401
byte[] (byte[] source) => source.ToArray())));
74027402
var nullableBytesArrayElementType = nullableBytesArray.SetElementType(typeof(byte[]),
74037403
nullable: true);
@@ -13890,7 +13890,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
1389013890
PhysicalAddress (PhysicalAddress v) => v),
1389113891
providerValueComparer: new ValueComparer<byte[]>(
1389213892
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
13893-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
13893+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
1389413894
byte[] (byte[] source) => source.ToArray()),
1389513895
mappingInfo: new RelationalTypeMappingInfo(
1389613896
storeTypeName: "varbinary(8)",
@@ -14253,7 +14253,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
1425314253
string (string v) => v),
1425414254
providerValueComparer: new ValueComparer<byte[]>(
1425514255
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
14256-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
14256+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
1425714257
byte[] (byte[] source) => source.ToArray()),
1425814258
converter: new ValueConverter<string, byte[]>(
1425914259
byte[] (string v) => Encoding.GetEncoding(12000).GetBytes(v),
@@ -15855,11 +15855,11 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
1585515855
byte[] (byte[] v) => v),
1585615856
keyComparer: new ValueComparer<byte[]>(
1585715857
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
15858-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
15858+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
1585915859
byte[] (byte[] source) => source.ToArray()),
1586015860
providerValueComparer: new ValueComparer<byte[]>(
1586115861
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
15862-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
15862+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
1586315863
byte[] (byte[] source) => source.ToArray()));
1586415864
uInt8Array.AddAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.None);
1586515865

test/EFCore.MySql.FunctionalTests/Scaffolding/Baselines/BigModel/PrincipalBasePrincipalDerivedDependentBasebyteEntityType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
362362
byte[] (byte[] v) => (v == null ? null : v.ToArray())),
363363
keyComparer: new ValueComparer<byte[]>(
364364
bool (byte[] v1, byte[] v2) => StructuralComparisons.StructuralEqualityComparer.Equals(((object)v1), ((object)v2)),
365-
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v))),
365+
int (byte[] v) => StructuralComparisons.StructuralEqualityComparer.GetHashCode(((object)v)),
366366
byte[] (byte[] source) => source.ToArray()),
367367
providerValueComparer: new ValueComparer<DateTime>(
368368
bool (DateTime v1, DateTime v2) => v1.Equals(v2),

0 commit comments

Comments
 (0)