我在 LINQ-to-SQL 类中修改了数据源(通过旧的删除和拖回方法),并惊讶地发现 INotifyPropertyChanging 和 INotifyPropertyChanged 接口不再在生成的类 (MyDb.designer.cs) 中实现。
各个字段的方法看起来像这样......
[Column(Storage="_Size", DbType="NVarChar(100)")]
public string Size
{
get
{
return this._Size;
}
set
{
if ((this._Size != value))
{
this.OnSizeChanging(value);
this.SendPropertyChanging();
this._Size = value;
this.SendPropertyChanged("Size");
this.OnSizeChanged();
}
}
}
为了看起来像这样...
[Column(Storage="_Size", DbType="NVarChar(100)")]
public string Size
{
get
{
return this._Size;
}
set
{
if ((this._Size != value))
{
this._Size = value;
}
}
}
关于为什么会发生这种情况以及它将如何影响我的申请有什么想法吗?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)