SessionBase.OfType 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)
Syntaxpublic OfType OfType(
Type type,
bool includeSubclasses = true,
bool databasePerType = true
)
Public Function OfType (
type As Type,
Optional includeSubclasses As Boolean = true,
Optional databasePerType As Boolean = true
) As OfType
public:
OfType^ OfType(
Type^ type,
bool includeSubclasses = true,
bool databasePerType = true
)
member OfType :
type : Type *
?includeSubclasses : bool *
?databasePerType : bool
(* Defaults:
let _includeSubclasses = defaultArg includeSubclasses true
let _databasePerType = defaultArg databasePerType true
*)
-> OfType
Parameters
- type
- Type: System.Type
Type to look for - includeSubclasses (Optional)
- Type: System.Boolean
Also return instances of sub classes or classes that implements the specified interface class - databasePerType (Optional)
- Type: System.Boolean
Assume that persisted objects where made persistent the simple way using Persist(IOptimizedPersistable, Nullable<UInt16>). When persisting this way, each object type gets its own Database which makes finding these objects easier and faster
Return Value
Type:
OfTypeThe enumeration wrapper
OfType(Type, Boolean, Boolean)object
See Also