public virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { MonitoringRepo.Dispose(); ApiInfoRepo.Dispose(); } this.disposed = true; } }
public RepositoryContext(AppDbContext dbContext) { context = dbContext; ApiInfoRepo = new ApiInfoRepo(context); MonitoringRepo = new MonitoringRepo(context); }