I am trying to create a generic repository to access my database. In EF6 I was able to do that in order to get a specific entity:
protected IDbSet d
Can't comment because of reputation, but if you use RC2 (or later?) you should use
var context = set.GetService().Context;
instead of
var context = set.GetService();