Class PKContainer
Container for objects that need keys.
Inherited Members
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public class PKContainer
Constructors
PKContainer()
Container for objects that need keys.
Declaration
public PKContainer()
Properties
this[object]
Retrieve the new primary key for an object
Declaration
public int this[object key] { get; }
Parameters
Type | Name | Description |
---|---|---|
object | key | The object that needs the key |
Property Value
Type | Description |
---|---|
int | New primary key |
Remarks
This operator should only be accessed after new keys are fetched from the database using the GetNextBatch(PKContainer) method.
Methods
Add(object, TableInfo)
Add an object in need of a new key.
Declaration
public void Add(object key, TableInfo tableInfo)
Parameters
Type | Name | Description |
---|---|---|
object | key | The object that needs the key |
TableInfo | tableInfo | TableInfo for the object that needs the key |