protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { _dbSet = null; _soulstoneEntities = null; } } this.disposed = true; }
public BaseRepository(SoulstoneEntities soulstoneEntities) { _soulstoneEntities = soulstoneEntities; _dbSet = _soulstoneEntities.Set <TEntity>(); }