KeyAttribute Class

KeyAttribute Class

Sets the unique key for the property that is used to save the value to the data store. This is useful if the property name has been changed, but content was already stored with the previous key. If omitted, the key is equal to the property name.

[AttributeUsage(AttributeTargets.Property)]
public sealed class KeyAttribute: Attribute, IPropertyModelAttribute

Inheritance  Attribute KeyAttribute

Implements  IPropertyModelAttribute

Constructors

Name Description
KeyAttribute(string)

Methods

Name Description
Apply(PropertyDefinition)