Entity Framework Feature Suggestions

DbContext Generator/Reverse Engineer Code First features should generate POCOs with virtual properties to enable change tracking proxies

Currently, the EF 4.x DbContext Generator code generation item as well as the Reverse Engineer Code First menu item generates POCO classes that only have virtual on navigation properites. Hence, a lazy loading proxy will be generated for the classes at runtime. However, a change tracking proxy will not be generated. This causes performance problems if you have a lot of objects in the object context. Please at least add an option for making all the properties virtual, or, just make it do that by default.

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Jon MillerJon Miller shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base