问题描述
我手动创建一些类的LINQ到SQL设计并期待在xx.designer.cs时,文件中的类不实现INotifyPropertyChanged接口。
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.
这工作,如果我通过从服务器资源管理器拖放创建实体。
This works if I create the entity by dragging from the server explorer.
有谁知道这是为什么,如果我做错了什么,或者是在某个地方设置这在设计师。
Does anyone know why this is and if I am doing something wrong or if there is somewhere to set this up in the designer.
干杯。
推荐答案
它看起来像它,除非你标记的成员作为主键没有做到这一点。然后,它这样做。 presumably变化的跟踪是没有用的无主键...
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...
这篇关于如何让我的LINQ到SQL实体实现INotifyPropertyChanged的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!