Click or drag to resize

IObjectDbEsentListByIndexT Method (String)

Lists (enumerates) all objects of a type over an alternative key index.

Namespace:  Orthogonal.ObjectDb.Esent
Assembly:  Orthogonal.ObjectDb.Esent (in Orthogonal.ObjectDb.Esent.dll) Version: 4.0.0
Syntax
C#
IEnumerable<T> ListByIndex<T>(
	string propertyIndexName
)
where T : class, new()

Parameters

propertyIndexName
Type: SystemString
The name of the property of type T containing the alternative key index values.

Type Parameters

T
The type of the object to list.

Return Value

Type: IEnumerableT
An enumerable set of objects of the specified type.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if propertyIndexName is null.
InvalidOperationException Thrown if propertyIndexName satisifes any of the following conditions.
  • Type T does not have the property name.
  • The property is already part of the primary key.
  • The property is a "blob" type, one that can potentially hold large amounts of information that cannot be efficiently indexed.
See Also