Add this attribute to define an additional index to a tables representing the data type.

Namespace: Composite.Data
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public sealed class IndexAttribute : Attribute
Visual Basic
Public NotInheritable Class IndexAttribute _
	Inherits Attribute
Visual C++
public ref class IndexAttribute sealed : public Attribute

Examples

This sample shows how to use the KeyPropertyName attribute:
CopyC#
[KeyPropertyName("Id")] 
[Index("FolderName", IndexDirection.Ascending, "FileName", IndexDirection.Descending)]
interface IMyDataType : IData
{
    Guid Id { get; set; }
    string FolderName { get; set; }
    string FileName { get; set; }

    // other data type properties
}

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    Composite.Data..::..IndexAttribute

See Also