protected virtual void Dispose(bool disposing) { if (disposing) { if (context != null) { context.Dispose(); context = null; } } }
public UserRepository(KovaiLogDBContext context) : base(context) { this.db_context = context; }
public GenericRepository(KovaiLogDBContext dbContext) { context = dbContext; dbSet = context.Set <TEntity>(); }
public UnitOfWork(KovaiLogDBContext dbContext) { _dbContext = dbContext; }