Completata prima review GenVal da testare
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
{
|
||||
public abstract class BaseRepository : IBaseRepository
|
||||
{
|
||||
protected readonly DataLayerContext _db;
|
||||
protected BaseRepository(DataLayerContext db) => _db = db;
|
||||
protected readonly DataLayerContext _dbCtx;
|
||||
protected BaseRepository(DataLayerContext db) => _dbCtx = db;
|
||||
|
||||
/// <summary>
|
||||
/// Salvataggio dati asincrono
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<bool> SaveChangesAsync() => await _db.SaveChangesAsync() > 0;
|
||||
public async Task<bool> SaveChangesAsync() => await _dbCtx.SaveChangesAsync() > 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user