Depending on what you are trying to accomplish.
I want to create an abstraction layer between the Entity Framework and your business logic, then yes, this is a good idea. But then you have to do a complete abstraction, meaning that your repository classes cannot expose IQueryable<T> .
If you are not creating a complete abstraction, I see no reason to transfer the DbContext to a working class unit.
source share