PrimaryKeyAttribute class

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Marks the property as part of the primary key.

[AttributeUsage(AttributeTargets.All)]
public class PrimaryKeyAttribute : SetFieldFlagsAttribute

Public Members

name description
PrimaryKeyAttribute() Initializes a new instance of the PrimaryKeyAttribute class.

See Also