1. Home
  2. Docs
  3. Llamachant Framework Modules
  4. Extended Functionality
  5. NPOBase (NonPersistentBaseObject)

NPOBase (NonPersistentBaseObject)

The NPOBase object extends the NonPersistentBaseObject from DevExpress as an abstract class. It provides a new SetPropertyValue method that is consistent with XPO objects. This is particularly useful if you are using our Llamachant Code Snippets.

				
					namespace LlamachantFramework.Module.NonPersistent
{
    public abstract class NPOBase : NonPersistentBaseObject
    {
        protected void SetPropertyValue<T>(string propertyname, ref T store, T value)
        {
            store = value;
            OnPropertyChanged(propertyname);
        }
    }
}
				
			

Usage

				
					[DomainComponent]
    public class TestWorkflowSettingsParameters : NPOBase
    {
        private string _EmailAddress;
        public string EmailAddress
        {
            get { return _EmailAddress; }
            set { SetPropertyValue<string>(nameof(EmailAddress), ref _EmailAddress, value); }
        }
    }
				
			
Was this article helpful to you? Yes No

How can we help?