Click or drag to resize

Placement Class

This class is used when deciding where to place a new object persistently. That is we have a choice of database number, page number and page number. There is other ways to control the placement including ObjectsPerPage, PagesPerDatabase, and it is also possible to override Persist(Placement, SessionBase, Boolean, Boolean, QueueIOptimizedPersistable).
Inheritance Hierarchy

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 10.2.0.0 (10.2)
Syntax
[SerializableAttribute]
public class Placement : OptimizedPersistable

The Placement type exposes the following members.

Constructors
  NameDescription
Public methodPlacement(SessionBase, IOptimizedPersistable, IOptimizedPersistable, Boolean, UInt32, Boolean)
Creates a Placement used for choosing a place to persist objects
Public methodPlacement(UInt32, UInt16, UInt16, UInt16, UInt16, Boolean, Boolean, UInt32, Boolean, Boolean)
Creates a Placement used for choosing a place to persist objects
Top
Properties
  NameDescription
Public propertyAllowOtherTypesOnSamePage
Gets/sets permission to create multiple types on the same page.
Public propertyEndDatabaseNumber
The last Database number acceptable for placement
Public propertyMaxObjectsPerPage
Gets/Sets the limit on how many objects to create on a single page.
Public propertyMaxPagesPerDatabase
Gets/sets the limit on the number of pages per database.
Public propertyStartDatabaseNumber
The first/original Database number used by this Placement
Public propertyStartPageNumber
The first/original Page number used by this Placement
Public propertyTryDatabaseNumber
Gets the current Database number to try with first for object placement.
Public propertyTryPageNumber
Gets/sets the page number to try with first when persisting a new object.
Public propertyTrySlotNumber
Gets/sets the page number to try next when persisting an object.
Top
Methods
Fields
  NameDescription
Public fieldStatic memberDefaultPlacementDatabaseNumber
If no other Database number is selected when persisting an object then this number is choosen.
Public fieldStatic memberDefaultPlacementPage
If no other Page number is selected when persisting an object then this number is choosen.
Top
Extension Methods
  NameDescription
Public Extension MethodToStringDetails(SessionBase, Boolean)Overloaded.
Object details as a string
(Defined by Utilities.)
Public Extension MethodToStringDetails(Schema, TypeVersion, Boolean)Overloaded.
Currently only used by Database Manager
(Defined by Utilities.)
Top
See Also