Click or drag to resize

Placement Constructor (UInt32, UInt16, UInt16, UInt16, UInt16, Boolean, Boolean, UInt32, Boolean, Boolean)

Creates a Placement used for choosing a place to persist objects

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public Placement(
	uint db,
	ushort page = 1,
	ushort slot = 1,
	ushort objectsPerPage = 10000,
	ushort pagesPerDatabase = 10000,
	bool persistRefs = false,
	bool tryOtherDatabaseIfLockConflict = true,
	uint maxNumberOfDatabases = 4294967295,
	bool allowOtherTypesOnSamePage = true,
	bool flushFullPages = true
)

Parameters

db
Type: SystemUInt32
Database number requested for placement
page (Optional)
Type: SystemUInt16
Page number requested for placement
slot (Optional)
Type: SystemUInt16
Slot number requested for placement
objectsPerPage (Optional)
Type: SystemUInt16
Limit the number of objects per page
pagesPerDatabase (Optional)
Type: SystemUInt16
Limit the number of pages per database
persistRefs (Optional)
Type: SystemBoolean
When persisting an object, shall references be persisted at the same time or later when flushing pages to disk
tryOtherDatabaseIfLockConflict (Optional)
Type: SystemBoolean
Is another Database acceptable
maxNumberOfDatabases (Optional)
Type: SystemUInt32
Maximum numner of databases to try for placement
allowOtherTypesOnSamePage (Optional)
Type: SystemBoolean
Is it OK to place object on a page which contains other types
flushFullPages (Optional)
Type: SystemBoolean
Is it OK toflush encounteted full pages?
See Also