【发布时间】:2018-11-12 15:35:40
【问题描述】:
我正在使用 DevExpress XAF 编写一段代码,我注意到如果我使用事件 OnSaving 代码执行 2 次,我该如何防止这种情况发生
protected override void OnSaving()
{
if (PrestamoP != null)
{
PrestamoP.Prestado -= Monto;
PrestamoP.Save();
}
else if (PrestamoG != null)
{
PrestamoG.Prestado -= Monto;
PrestamoG.Save();
}
base.OnSaving();
}
【问题讨论】:
标签: devexpress xaf