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

前端 未结 8 905
忘了有多久
忘了有多久 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:05

    Well it depends what you are trying to do. If you just want to implement custom properties/methods you could use the funcionality of partial classes. If you want to change lets say setter/getter of your properties in your entity designer you'd have to adapt the dbContext generator template file. It's a T4 template.

提交回复
热议问题