PersistedState (attribute): Difference between revisions
From MXMS Wiki
Jump to navigationJump to search
| Line 4: | Line 4: | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
[PersistedState] | |||
public virtual string Name | |||
{ | |||
get; | |||
set; | |||
} | |||
</pre> | </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;
}