Click or drag to resize

ObjectDbFindFirstByIndexT Method

Finds the first object in the database with a property value that equals a search value.

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

Parameters

propertyIndexName
Type: SystemString
The name of the property index to search. The property must not be part of the primary key. The property Type cannot be byte[]. If no property with the specified name is found on the Type being processed, then null is returned.
matchValue
Type: SystemObject
The value to match when searching the property index.

Type Parameters

T
The type of object to retrieve.

Return Value

Type: T
An object of type T or null if there is no match. If there are multiple objects that match the find value then the first one is returned.

Implements

IObjectDbEsentFindFirstByIndexT(String, Object)
See Also