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
)
Public Shared Function Open (
session As SessionBase,
databaseNumber As UInteger,
objectsPerPage As UShort,
usesAutoIncrement As Boolean
) As IOptimizedPersistable
public:
static IOptimizedPersistable^ Open(
SessionBase^ session,
unsigned int databaseNumber,
unsigned short objectsPerPage,
bool usesAutoIncrement
)
static member Open :
session : SessionBase *
databaseNumber : uint32 *
objectsPerPage : uint16 *
usesAutoIncrement : bool -> IOptimizedPersistable
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:
IOptimizedPersistablenull 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