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,7 +12,7 @@ namespace xDataService.Providers
/// </summary>
/// <typeparam name="TEntity"></typeparam>
public class XStringKeyGenerator<TEntity> : IXKeyGenerator<TEntity, string>
public class XStringKeyGenerator<TEntity> : XKeyGenerator<TEntity, string>, IXKeyGenerator<TEntity, string>
where TEntity : XBaseEntity<string>
{
private readonly IXSequentialGuid sequentialGuid;
@@ -22,7 +22,7 @@ namespace xDataService.Providers
this.sequentialGuid = sequentialGuid;
}
public async Task<string> GenerateKey(
public override async Task<string> GenerateKey(
IXBaseRepository<TEntity, string> repository,
CancellationToken cancellationToken = default
)
@@ -41,7 +41,7 @@ namespace xDataService.Providers
}
}
public bool IsEmpty(string id)
public override bool IsEmpty(string id)
{
return id.IsNullOrEmpty();
}