Click or drag to resize

OfType Constructor (Type, SessionBase, Boolean, Boolean)

Constructs this enumeration wrapper object

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public OfType(
	Type type,
	SessionBase session,
	bool includeSubclasses,
	bool databasePerType
)

Parameters

type
Type: SystemType
The Type of persisted objects to enumerate
session
Type: VelocityDb.SessionSessionBase
The active session
includeSubclasses
Type: SystemBoolean
Also return instances of sub classes
databasePerType
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
See Also