Does DataContext need to replace DbContext.Set<T>

Jul 6, 2014 at 10:39 PM
Edited Jul 6, 2014 at 10:39 PM
Hi Le,

This is a very short one. DataContext defines public new DbSet<T> Set<T> to hide the base method, however all this does is enforce the same constraints as DbContext.Set<T> and call return base.Set<T>();.

Is this still required? Removing it, or alternatively documenting why we have it, may make the codebase easier to understand.

Andrew
Jul 7, 2014 at 4:07 PM
Marked as answer by lelong37 on 7/7/2014 at 8:07 AM