SessionBaseAllObjectsT Method |
Gets an object used for enumerating all objects in all Databases
Namespace:
VelocityDb.Session
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public AllObjects<T> AllObjects<T>(
bool includeSubclasses = true,
bool databasePerType = true
)
Public Function AllObjects(Of T) (
Optional includeSubclasses As Boolean = true,
Optional databasePerType As Boolean = true
) As AllObjects(Of T)
public:
generic<typename T>
AllObjects<T>^ AllObjects(
bool includeSubclasses = true,
bool databasePerType = true
)
member AllObjects :
?includeSubclasses : bool *
?databasePerType : bool
(* Defaults:
let _includeSubclasses = defaultArg includeSubclasses true
let _databasePerType = defaultArg databasePerType true
*)
-> AllObjects<'T>
Parameters
- includeSubclasses (Optional)
- Type: SystemBoolean
Also return instances of sub classes or classes that implements the specified interface class - databasePerType (Optional)
- Type: SystemBoolean
Assume that persisted objects where made persistent the simple way using Persist(IOptimizedPersistable, NullableUInt16). When persisting this way, each object type gets its own Database which makes finding these objects easier and faster
Type Parameters
- T
- The type of object we are looking for
Return Value
Type:
AllObjectsTThe enumeration wrapper object
See Also