SessionBaseIndexT Method (Database) |
Gets an index of all objects of a certain type within a given database (attribute OnePerDatabase must be used).
If you have updated objects persisted in a prior transaction that you want part of an index. Call
FlushUpdates
or call
Write/> to add such an object to index before querying using an index./>
Namespace:
VelocityDb.Session
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public BTreeSetOidShort<T> Index<T>(
Database inDatabase
)
Public Function Index(Of T) (
inDatabase As Database
) As BTreeSetOidShort(Of T)
public:
generic<typename T>
BTreeSetOidShort<T>^ Index(
Database^ inDatabase
)
member Index :
inDatabase : Database -> BTreeSetOidShort<'T>
Parameters
- inDatabase
- Type: VelocityDbDatabase
Use index as created within this Database
Type Parameters
- T
- The type of object indexed
Return Value
Type:
BTreeSetOidShortTThe index
See Also