Click or drag to resize

AutoPlacementOpen Method

Tries to open AutoPlacement object for a given database

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public static IOptimizedPersistable Open(
	SessionBase session,
	uint databaseNumber,
	ushort objectsPerPage,
	bool usesAutoIncrement
)

Parameters

session
Type: VelocityDb.SessionSessionBase
Active session
databaseNumber
Type: SystemUInt32
Database number used by Type using this AutoPlacement
objectsPerPage
Type: SystemUInt16
Requested max number of objects per page
usesAutoIncrement
Type: SystemBoolean
Type for which AutoPlacement is used must not use any auto increment fields or else parallel add of this object type is not possible with simple persist.

Return Value

Type: IOptimizedPersistable
null if doesn't exist, the persistent AutoPlacement object if we able to read it from the Database without a lock conflict, a transient AutoPlacement if auto increment isn't used and we get a lock conflict; otherwise throw lock conflict exception
See Also