14 lines
427 B
C#
14 lines
427 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using xModels.Base;
|
|
|
|
namespace xDataService.Interfaces {
|
|
public interface IXKeyGenerator<TEntity, TKey>
|
|
where TEntity : XBaseEntity<TKey> {
|
|
bool IsEmpty (TKey id);
|
|
Task<TKey> GenerateKey (
|
|
IXBaseRepository<TEntity, TKey> repository,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
}
|
|
} |