release: IT-631 fix EF repository base bugs #12
@@ -89,7 +89,7 @@ public abstract class BaseEfRepository<TDbContext, TEntity, TEntityId> :
|
|||||||
|
|
||||||
public async Task DeleteAsync(TEntityId id)
|
public async Task DeleteAsync(TEntityId id)
|
||||||
{
|
{
|
||||||
TEntity? entity = GetById(id);
|
TEntity? entity = await GetByIdAsync(id);
|
||||||
if (entity != null)
|
if (entity != null)
|
||||||
{
|
{
|
||||||
DoRemove(entity);
|
DoRemove(entity);
|
||||||
|
|||||||
Reference in New Issue
Block a user