How do I make my Linq to Sql entity implement INotifyPropertyChanged

后端 未结 1 837
误落风尘
误落风尘 2021-01-22 22:10

I\'ve manually created some classes in the Linq-to-sql designer and when looking in the xx.designer.cs file the class doesn\'t implement INotifyPropertyChanged interface.

相关标签:
1条回答
  • 2021-01-22 22:36

    It looks like it doesn't do this unless you mark a member as a primary key. Then it does this. Presumably change tracking is useless without a primary key...

    0 讨论(0)
提交回复
热议问题