Table of Contents

Class IndexAttribute

Namespace
Typhon.Schema.Definition
Assembly
Typhon.Schema.Definition.dll

Marks a component field for indexing, maintaining a B+Tree index over the field's values for lookups and range scans.

[AttributeUsage(AttributeTargets.Field)]
public sealed class IndexAttribute : Attribute
Inheritance
IndexAttribute
Inherited Members

Constructors

IndexAttribute()

public IndexAttribute()

Properties

AllowMultiple

true for a non-unique index (many entities may share a key value); false (default) for a unique index (one entity per key).

public bool AllowMultiple { get; set; }

Property Value

bool

OnParentDelete

Cascade action when the parent entity (referenced by an EntityLink<T> FK field) is deleted. Only applicable to indexed EntityLink fields. Default is None.

public CascadeAction OnParentDelete { get; set; }

Property Value

CascadeAction