PrimaryKeyAttribute Class

Defines an attribute that will mark a property as a primary key field for a modeled table.

Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.128 -- Release Build+cb657b646daac3e9cc5384ff42ed4530df50eab1
[AttributeUsageAttribute(AttributeTargets.Property)]
public sealed class PrimaryKeyAttribute : Attribute
Inheritance
Object    Attribute    PrimaryKeyAttribute

Constructors

PrimaryKeyAttribute Creates a new PrimaryKeyAttribute.
PrimaryKeyAttribute(Boolean) Creates a new PrimaryKeyAttribute with specified identity state.

Properties

IsIdentity Gets flag that determines if primary key field is an identity field.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)

Methods

EqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
GetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also