Class IndexedAttribute
An attribute that indicates an indexed property. Indexed properties slightly slow down insertions, but can greatly speed up queries.
Namespace: Realms
Assembly: Realm.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class IndexedAttribute : Attribute
Constructors
| Edit this page View SourceIndexedAttribute()
Initializes a new instance of the IndexedAttribute class.
Declaration
public IndexedAttribute()
IndexedAttribute(IndexType)
Initializes a new instance of the IndexedAttribute class.
Declaration
public IndexedAttribute(IndexType mode)
Parameters
Type | Name | Description |
---|---|---|
IndexType | mode | The type of index that will be created. |
Properties
| Edit this page View SourceType
Gets a value indicating the type of indexing that the database will perform. Default is General.
Declaration
public IndexType Type { get; }
Property Value
Type | Description |
---|---|
IndexType | The index mode for the property. |