public GenericRepository(IContextAdapter adapter) { _DbContext = adapter.GetContext(); _DbSet = _DbContext.Set <T>(); }