Skip to content

Commit

Permalink
Fixes for EFCore and omission of the generation of Equals if the user…
Browse files Browse the repository at this point in the history
… has provided it.
  • Loading branch information
SteveDunn committed Nov 2, 2023
1 parent 9b4283e commit 59760ed
Show file tree
Hide file tree
Showing 2,550 changed files with 12,925 additions and 6,133 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,14 @@ namespace Whatever

return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte(value);
}

public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other)
public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other)
{
// It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals.
// We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type.
if(!_isInitialized || !other._isInitialized) return false;

return global::System.Collections.Generic.EqualityComparer<System.Byte>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Int64>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitlong> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Boolean>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Nonebool> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,14 @@ namespace Whatever

return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte(value);
}

public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other)
public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other)
{
// It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals.
// We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type.
if(!_isInitialized || !other._isInitialized) return false;

return global::System.Collections.Generic.EqualityComparer<System.Byte>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ public System.String Value

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.String>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitstring> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public System.Double Value

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Double>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitdouble> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Byte>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitbyte> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public System.Guid Value

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Guid>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public System.Int64 Value

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Int64>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitlong> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public System.Single Value

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Single>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitfloat> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,14 @@ namespace Whatever

return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong(value);
}

public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong other)
public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong other)
{
// It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals.
// We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type.
if(!_isInitialized || !other._isInitialized) return false;

return global::System.Collections.Generic.EqualityComparer<System.Int64>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Int32>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Noneint> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Byte>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitbyte> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.DateTimeOffset>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,14 @@ namespace Whatever

return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit(value);
}

public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit other)
public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit other)
{
// It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals.
// We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type.
if(!_isInitialized || !other._isInitialized) return false;

return global::System.Collections.Generic.EqualityComparer<System.Int32>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public System.Int16 Value

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Int16>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitshort> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.DateTime>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,14 @@ namespace Whatever

return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble(value);
}

public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble other)
public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble other)
{
// It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals.
// We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type.
if(!_isInitialized || !other._isInitialized) return false;

return global::System.Collections.Generic.EqualityComparer<System.Double>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Double>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Explicitdouble> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.DateTimeOffset>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Single>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitfloat> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Boolean>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonebool> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Boolean>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitbool> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,14 @@ namespace Whatever

return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort(value);
}

public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort other)
public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort other)
{
// It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals.
// We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type.
if(!_isInitialized || !other._isInitialized) return false;

return global::System.Collections.Generic.EqualityComparer<System.Int16>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,14 @@ namespace Whatever

return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid(value);
}

public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other)
public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other)
{
// It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals.
// We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type.
if(!_isInitialized || !other._isInitialized) return false;

return global::System.Collections.Generic.EqualityComparer<System.Guid>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer)
{
return comparer.Equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace Whatever

return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer<System.Int64>.Default.Equals(Value, other.Value);
}

public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitlong> comparer)
{
return comparer.Equals(this, other);
Expand Down
Loading

0 comments on commit 59760ed

Please sign in to comment.