Files
xDataService/Interfaces/IXKeyGenerator.cs
T
2026-05-04 00:37:06 +03:30

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
);
}
}