refactor: removed the IComparable from IIdentifiable and implemented in extension method

This commit is contained in:
2026-03-04 20:16:07 +03:00
parent 4326d5615e
commit e84c6edce1
3 changed files with 7 additions and 4 deletions

View File

@@ -101,6 +101,4 @@ public abstract class BaseEntity : IEntity
protected BaseEntity() => Id = Guid.NewGuid().ToString("D");
protected BaseEntity(string id) => Id = id;
public int CompareTo(IIdentifiable? other) => Id.CompareTo(other?.Id);
}