diff --git a/src/StronglyTypedIds.Templates/guid-full.typedid b/src/StronglyTypedIds.Templates/guid-full.typedid
index a0fa78b5f..912d3dd7a 100644
--- a/src/StronglyTypedIds.Templates/guid-full.typedid
+++ b/src/StronglyTypedIds.Templates/guid-full.typedid
@@ -34,6 +34,10 @@
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other) => Value.CompareTo(other.Value);
diff --git a/src/StronglyTypedIds.Templates/int-full.typedid b/src/StronglyTypedIds.Templates/int-full.typedid
index 520108330..c193f9f95 100644
--- a/src/StronglyTypedIds.Templates/int-full.typedid
+++ b/src/StronglyTypedIds.Templates/int-full.typedid
@@ -33,6 +33,10 @@
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other) => Value.CompareTo(other.Value);
diff --git a/src/StronglyTypedIds.Templates/long-full.typedid b/src/StronglyTypedIds.Templates/long-full.typedid
index 64470e776..91931f272 100644
--- a/src/StronglyTypedIds.Templates/long-full.typedid
+++ b/src/StronglyTypedIds.Templates/long-full.typedid
@@ -33,6 +33,10 @@
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other) => Value.CompareTo(other.Value);
diff --git a/src/StronglyTypedIds.Templates/newid-full.typedid b/src/StronglyTypedIds.Templates/newid-full.typedid
index 351d03ad9..fe05e3113 100644
--- a/src/StronglyTypedIds.Templates/newid-full.typedid
+++ b/src/StronglyTypedIds.Templates/newid-full.typedid
@@ -34,6 +34,10 @@
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other) => Value.CompareTo(other.Value);
diff --git a/src/StronglyTypedIds.Templates/nullablestring-full.typedid b/src/StronglyTypedIds.Templates/nullablestring-full.typedid
index bc3261571..a538b9a58 100644
--- a/src/StronglyTypedIds.Templates/nullablestring-full.typedid
+++ b/src/StronglyTypedIds.Templates/nullablestring-full.typedid
@@ -41,6 +41,10 @@
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other)
diff --git a/src/StronglyTypedIds.Templates/string-full.typedid b/src/StronglyTypedIds.Templates/string-full.typedid
index 50fdc8ad3..d3c09f6ab 100644
--- a/src/StronglyTypedIds.Templates/string-full.typedid
+++ b/src/StronglyTypedIds.Templates/string-full.typedid
@@ -41,6 +41,10 @@
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other)
diff --git a/src/StronglyTypedIds/EmbeddedSources.Guid.cs b/src/StronglyTypedIds/EmbeddedSources.Guid.cs
index 7e905ab79..aaa504271 100644
--- a/src/StronglyTypedIds/EmbeddedSources.Guid.cs
+++ b/src/StronglyTypedIds/EmbeddedSources.Guid.cs
@@ -36,6 +36,10 @@ public override bool Equals(object? obj)
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other) => Value.CompareTo(other.Value);
diff --git a/src/StronglyTypedIds/EmbeddedSources.Int.cs b/src/StronglyTypedIds/EmbeddedSources.Int.cs
index 6a21b986a..d45771917 100644
--- a/src/StronglyTypedIds/EmbeddedSources.Int.cs
+++ b/src/StronglyTypedIds/EmbeddedSources.Int.cs
@@ -35,6 +35,10 @@ public override bool Equals(object? obj)
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other) => Value.CompareTo(other.Value);
diff --git a/src/StronglyTypedIds/EmbeddedSources.Long.cs b/src/StronglyTypedIds/EmbeddedSources.Long.cs
index 0d1a47858..9039432fb 100644
--- a/src/StronglyTypedIds/EmbeddedSources.Long.cs
+++ b/src/StronglyTypedIds/EmbeddedSources.Long.cs
@@ -35,6 +35,10 @@ public override bool Equals(object? obj)
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other) => Value.CompareTo(other.Value);
diff --git a/src/StronglyTypedIds/EmbeddedSources.String.cs b/src/StronglyTypedIds/EmbeddedSources.String.cs
index d66f92566..6995e4673 100644
--- a/src/StronglyTypedIds/EmbeddedSources.String.cs
+++ b/src/StronglyTypedIds/EmbeddedSources.String.cs
@@ -43,6 +43,10 @@ public override bool Equals(object? obj)
public static bool operator ==(PLACEHOLDERID a, PLACEHOLDERID b) => a.Equals(b);
public static bool operator !=(PLACEHOLDERID a, PLACEHOLDERID b) => !(a == b);
+ public static bool operator > (PLACEHOLDERID a, PLACEHOLDERID b) => return a.CompareTo(b) > 0;
+ public static bool operator < (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) < 0;
+ public static bool operator >= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (PLACEHOLDERID a, PLACEHOLDERID b) => a.CompareTo(b) <= 0;
///
public int CompareTo(PLACEHOLDERID other)
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateDefaultIdInGlobalNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateDefaultIdInGlobalNamespace.verified.txt
index 31775446e..4a9bc014c 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateDefaultIdInGlobalNamespace.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateDefaultIdInGlobalNamespace.verified.txt
@@ -45,6 +45,10 @@
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateForCustomTemplate.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateForCustomTemplate.verified.txt
index e03bc8578..067c0f71f 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateForCustomTemplate.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateForCustomTemplate.verified.txt
@@ -48,6 +48,10 @@ namespace SomeNamespace
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateGenericVeryNestedIdInFileScopeNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateGenericVeryNestedIdInFileScopeNamespace.verified.txt
index 04568ca04..6f0ce81ca 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateGenericVeryNestedIdInFileScopeNamespace.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateGenericVeryNestedIdInFileScopeNamespace.verified.txt
@@ -51,6 +51,10 @@ namespace SomeNamespace
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateIdInFileScopedNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateIdInFileScopedNamespace.verified.txt
index 1d170d01c..6c6532eb4 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateIdInFileScopedNamespace.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateIdInFileScopedNamespace.verified.txt
@@ -47,6 +47,10 @@ namespace SomeNamespace
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateIdInNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateIdInNamespace.verified.txt
index 1d170d01c..6c6532eb4 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateIdInNamespace.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateIdInNamespace.verified.txt
@@ -47,6 +47,10 @@ namespace SomeNamespace
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleIdsWithSameName.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleIdsWithSameName.verified.txt
index 9b20ac148..3c50bbfa7 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleIdsWithSameName.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleIdsWithSameName.verified.txt
@@ -47,6 +47,10 @@ namespace MyContracts.V1
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
@@ -264,6 +268,10 @@ namespace MyContracts.V2
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleTemplatesWithBuiltIn.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleTemplatesWithBuiltIn.verified.txt
index 6681fb8ca..42b1fb787 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleTemplatesWithBuiltIn.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleTemplatesWithBuiltIn.verified.txt
@@ -104,6 +104,10 @@
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNestedIdInFileScopeNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNestedIdInFileScopeNamespace.verified.txt
index d5fd29d80..606cde5e0 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNestedIdInFileScopeNamespace.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNestedIdInFileScopeNamespace.verified.txt
@@ -49,6 +49,10 @@ namespace SomeNamespace
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNonDefaultIdInNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNonDefaultIdInNamespace.verified.txt
index e60ccd2fc..14f5bcde4 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNonDefaultIdInNamespace.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNonDefaultIdInNamespace.verified.txt
@@ -46,6 +46,10 @@ namespace SomeNamespace
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateVeryNestedIdInFileScopeNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateVeryNestedIdInFileScopeNamespace.verified.txt
index 8c8372976..c515c0949 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateVeryNestedIdInFileScopeNamespace.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateVeryNestedIdInFileScopeNamespace.verified.txt
@@ -53,6 +53,10 @@ namespace SomeNamespace
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithCustomTemplateUsingGlobalAttribute.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithCustomTemplateUsingGlobalAttribute.verified.txt
index 1138a5f5e..e91449683 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithCustomTemplateUsingGlobalAttribute.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithCustomTemplateUsingGlobalAttribute.verified.txt
@@ -46,6 +46,10 @@
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);
diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithTemplateUsingGlobalAttribute.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithTemplateUsingGlobalAttribute.verified.txt
index 7d81a0cee..57239f576 100644
--- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithTemplateUsingGlobalAttribute.verified.txt
+++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithTemplateUsingGlobalAttribute.verified.txt
@@ -44,6 +44,10 @@
public static bool operator ==(MyId a, MyId b) => a.Equals(b);
public static bool operator !=(MyId a, MyId b) => !(a == b);
+ public static bool operator > (MyId a, MyId b) => return a.CompareTo(b) > 0;
+ public static bool operator < (MyId a, MyId b) => a.CompareTo(b) < 0;
+ public static bool operator >= (MyId a, MyId b) => a.CompareTo(b) >= 0;
+ public static bool operator <= (MyId a, MyId b) => a.CompareTo(b) <= 0;
///
public int CompareTo(MyId other) => Value.CompareTo(other.Value);