/// <summary> /// Disposes all external resources. /// </summary> /// <param name="disposing">The dispose indicator.</param> private void Dispose(bool disposing) { if (disposing) { if (_dbContext != null) { _dbContext.Dispose(); _dbContext = null; } } }
public EFCoreDataLoader(LivitDbContext dbContext) { this.DbContext = dbContext; }
/// <summary> /// Initializes a new instance of the UnitOfWork class. /// </summary> /// <param name="context">The object context</param> public EFCoreUnitOfWork(LivitDbContext context) { _dbContext = context; }
public EFCoreRepository(LivitDbContext dbContext) : base(dbContext) { }