Is there a way to inherits from DbSet? I want to add some new properties, like this:
public class PersonSet : DbSet { public int MyProperty
I solved this using another variable to instantiate the "regular" DbSet.
private DbSet _persons { get; set; } public PersonDbSet Persons { get { return new PersonDbSet(_persons); } }
This way entityframework recognizes the Entity but I can still use my own DbSet class.