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)
public static IOptimizedPersistable Open(
	SessionBase session,
	uint databaseNumber,
	ushort objectsPerPage,
	bool usesAutoIncrement


Type: VelocityDb.SessionSessionBase
Active session
Type: SystemUInt32
Database number used by Type using this AutoPlacement
Type: SystemUInt16
Requested max number of objects per page
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