last ...
This commit is contained in:
@@ -11,7 +11,7 @@ namespace xDataService.Providers
|
||||
/// Default Guid Key Generator ...
|
||||
/// </summary>
|
||||
/// <typeparam name="TEntity"></typeparam>
|
||||
public class XGuidKeyGenerator<TEntity> : IXKeyGenerator<TEntity, Guid>
|
||||
public class XGuidKeyGenerator<TEntity> : XKeyGenerator<TEntity, Guid>, IXKeyGenerator<TEntity, Guid>
|
||||
where TEntity : XBaseEntity<Guid>
|
||||
{
|
||||
private readonly IXSequentialGuid sequentialGuid;
|
||||
@@ -23,7 +23,7 @@ namespace xDataService.Providers
|
||||
this.sequentialGuid = sequentialGuid;
|
||||
}
|
||||
|
||||
public async Task<Guid> GenerateKey(
|
||||
public override async Task<Guid> GenerateKey(
|
||||
IXBaseRepository<TEntity, Guid> repository,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
@@ -44,7 +44,7 @@ namespace xDataService.Providers
|
||||
}, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
public bool IsEmpty(Guid id)
|
||||
public override bool IsEmpty(Guid id)
|
||||
{
|
||||
//
|
||||
var result = id.IsNull() || id.IsDefaultGuid();
|
||||
|
||||
Reference in New Issue
Block a user