What is the overhead of Entity Framework tracking?
问题 I've just been talking with a colleague about Entity Framework change tracking. We eventually figured out that my context interface should have IDBSet<MyPoco> MyThings { get; } rather than IQueryable<MyPoco> MyThings { get; } and that my POCO should also have all it's properties as virtual . Using the debugger we could then see the tracking objects and also that the results contained proxies to my actual POCOs. If I don't have my POCO properties as virtual and have my context interface using