last ...
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user