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
+3 -3
View File
@@ -12,10 +12,10 @@ namespace xDataService.Providers
/// Default Int Key Generator ...
/// </summary>
/// <typeparam name="TEntity"></typeparam>
public class XIntKeyGenerator<TEntity> : IXKeyGenerator<TEntity, int>
public class XIntKeyGenerator<TEntity> : XKeyGenerator<TEntity, int>, IXKeyGenerator<TEntity, int>
where TEntity : XBaseEntity<int>
{
public async Task<int> GenerateKey(
public override async Task<int> GenerateKey(
IXBaseRepository<TEntity, int> repository,
CancellationToken cancellationToken = default
)
@@ -33,7 +33,7 @@ namespace xDataService.Providers
return result;
}
public bool IsEmpty(int id)
public override bool IsEmpty(int id)
{
//
var result = id <= 0;