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: System.Type
The Type of persisted objects to enumerate
session
Type: VelocityDb.Session.SessionBase
The active session
includeSubclasses
Type: System.Boolean
Also return instances of sub classes
databasePerType
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
See Also