-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4890698
commit eb37ce9
Showing
5 changed files
with
49 additions
and
46 deletions.
There are no files selected for viewing
21 changes: 9 additions & 12 deletions
21
src/core/Wemogy.Infrastructure.Database.Core/Abstractions/IDatabaseRepository`3.Exists.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Wemogy.Infrastructure.Database.Core.ValueObjects; | ||
|
||
namespace Wemogy.Infrastructure.Database.Core.Abstractions | ||
namespace Wemogy.Infrastructure.Database.Core.Abstractions; | ||
|
||
public partial interface IDatabaseRepository<TEntity, in TPartitionKey, in TId> | ||
where TEntity : IEntityBase<TId> | ||
where TPartitionKey : IEquatable<TPartitionKey> | ||
where TId : IEquatable<TId> | ||
{ | ||
public partial interface IDatabaseRepository<TEntity, in TPartitionKey, in TId> | ||
where TEntity : IEntityBase<TId> | ||
where TPartitionKey : IEquatable<TPartitionKey> | ||
where TId : IEquatable<TId> | ||
{ | ||
Task<bool> ExistsAsync(TId id, TPartitionKey partitionKey, CancellationToken cancellationToken = default); | ||
Task<bool> ExistsAsync(TId id, TPartitionKey partitionKey, CancellationToken cancellationToken = default); | ||
|
||
Task<bool> ExistsAsync(TId id, CancellationToken cancellationToken = default); | ||
Task<bool> ExistsAsync(TId id, CancellationToken cancellationToken = default); | ||
|
||
Task<bool> ExistsAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default); | ||
} | ||
Task<bool> ExistsAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/core/Wemogy.Infrastructure.Database.Core/Repositories/DatabaseRepository`3.Exists.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.