This commit is contained in:
2026-05-09 22:21:40 +03:30
parent 34afd95640
commit 49c6872fcf
9 changed files with 1608 additions and 130 deletions
+18
View File
@@ -0,0 +1,18 @@
using System.Threading;
using System.Threading.Tasks;
using xDataService.Interfaces;
using xModels.Base;
namespace xDataService.Providers
{
public abstract class XKeyGenerator<TEntity, TKey> : IXKeyGenerator<TEntity, TKey>
where TEntity : XBaseEntity<TKey>
{
public abstract Task<TKey> GenerateKey(
IXBaseRepository<TEntity, TKey> repository,
CancellationToken cancellationToken = default
);
public abstract bool IsEmpty(TKey id);
}
}