Click or drag to resize

SessionBaseOfType Method

Gets an object used for enumerating all objects in all Databases

Namespace:  VelocityDb.Session
Assembly:  VelocityDb (in VelocityDb.dll) Version: (11.1)
public OfType OfType(
	Type type,
	bool includeSubclasses = true,
	bool databasePerType = true


Type: SystemType
Type to look for
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

Return Value

Type: OfType
The enumeration wrapper OfType(Type, Boolean, Boolean)object
See Also