Skip to content

Commit fbeb960

Browse files
author
Chris Young
committed
Removed IEquatable constraint
1 parent 390af22 commit fbeb960

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ArchitectNow.Mongo/Db/BaseRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace ArchitectNow.Mongo.Db
1616
{
1717
public abstract class BaseRepository<TModel, TDataContext, TId> : IBaseRepository<TModel, TId> where TModel : BaseDocument<TId>
1818
where TDataContext : MongoDataContext
19-
where TId : IComparable<TId>, IEquatable<TId>
19+
where TId : IComparable<TId>
2020
{
2121
private readonly IValidator<TModel> _validator;
2222

src/ArchitectNow.Mongo/Db/IBaseRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace ArchitectNow.Mongo.Db
77
{
88
public interface IBaseRepository<T, TId> : IBaseRepository
99
where T : BaseDocument<TId>
10-
where TId: IComparable<TId>, IEquatable<TId>
10+
where TId: IComparable<TId>
1111
{
1212
Task<bool> DeleteAllAsync();
1313
Task<List<T>> GetAllAsync();

src/ArchitectNow.Mongo/Models/BaseDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace ArchitectNow.Mongo.Models
88
{
9-
public abstract class BaseDocument<TId> where TId: IComparable<TId>, IEquatable<TId>
9+
public abstract class BaseDocument<TId> where TId: IComparable<TId>
1010
{
1111
protected BaseDocument()
1212
{

0 commit comments

Comments
 (0)