PersistedState (attribute): Difference between revisions

From MXMS Wiki
Jump to navigationJump to search
No edit summary
Tag: Reverted
No edit summary
Line 3: Line 3:


== Example ==
== Example ==
<code>
<pre>
[PersistedState]
[PersistedState]
public virtual string Name
public virtual string Name
Line 10: Line 10:
   set;
   set;
}
}
</code>
</pre>

Revision as of 16:14, 16 March 2026

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;
}