Skip to main content

IndexAttribute

Create an RDBMS Column Index

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field)]
public class IndexAttribute : AttributeBase, _Attribute

Properties

Name

View Source
Declaration
public string Name { get; set; }

Unique

View Source
Declaration
public bool Unique { get; set; }

Clustered

View Source
Declaration
public bool Clustered { get; set; }

NonClustered

View Source
Declaration
public bool NonClustered { get; set; }

Implements

  • System.Runtime.InteropServices._Attribute