How to get property change notifications with EF 4.x DbContext generator

前端 未结 8 913
忘了有多久
忘了有多久 2020-11-27 18:29

I\'m playing around with Entity Framework 4.3, and so I am using the DbContext Generator to create the context and entity classes.

With the default EF 4 code genera

8条回答
  •  情话喂你
    2020-11-27 19:29

    You should continue using ObjectContext if you want property change notifications when you bind directly to the data model classes.

    The lightweight DBContext classes are for patterns such as MVVM or MVVMC where your view model implements property change notifications and your UI only binds to the view model's properties. You never bind to data model classes in these patterns.

提交回复
热议问题