PersistedState (attribute)

From MXMS Wiki
Revision as of 05:53, 31 March 2026 by Bjorn (talk | contribs) (Introduction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

PersistedState is an attribute which main purpose is to make a property persistent in the database. When applied to a property a column is created which holds the state of the property

Example

[PersistedState]
public virtual string Name
{
  get;
  set;
}