No Change Tracking Proxies in EF6 (VB) RRS feed

  • Question

  • I started a new VB.Net project with Entity Framework 6.02, database first and created an EDMX that generates my entity classes (via .tt file). Just out of curiosity I tested my entity instances if they implement IEntityWithChangeTracker, i.e. if they are change tracking proxies. The test failed (the objects don't implement IEntityWithChangeTracker). Somewhere I read that it's necessary that all properties of entity classes are virtual (Overridable in VB). So I looked into the generated code for the entity classes and there I can see that only collection properties are virtual (Overridable) but not scalar properties. Do I need a different .tt file or am I missing some setting to enable change tracking Proxies?

    Thanks for any ideas,


    Wednesday, December 18, 2013 4:02 PM


All replies