IdentityAttribute class

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

Marks the field as Identity, a combination of PrimaryKey, AutoIncrement and NotNull flags.

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

Public Members

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

See Also