public RepositoryBase(IUnitofWork unitofwork) { _unitofwork = unitofwork; _datatable = (DbSet <TEntity>)_unitofwork.GetEntity <TEntity>(); }