Hello,
I couldn't understand why the OnSaving
method is triggered twice in the DevExpress XAF Web & Win .NET Core 24.2.5 project. I am sending you the project as an example. It is a very basic starter project with no additional development. I don't recall having this issue in previous versions.
How can I fix this problem? Could you help me with this?
Codeusing DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Xpo;
namespace DXApplication4.Module.BusinessObjects
{
[DefaultClassOptions]
public class DomainObject : XPObject
{
public DomainObject(Session session)
: base(session)
{
}
public override void AfterConstruction()
{
base.AfterConstruction();
}
private string _PersistentProperty;
[XafDisplayName("My display name"), ToolTip("My hint message")]
public string PersistentProperty
{
get { return _PersistentProperty; }
set { SetPropertyValue(nameof(PersistentProperty), ref _PersistentProperty, value); }
}
protected override void OnSaving()
{
base.OnSaving();
}
}
}