Show / Hide Table of Contents

Class PKContainer

Container for objects that need keys.

Inheritance
Object
PKContainer
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public class PKContainer

Constructors

PKContainer()

Declaration
public PKContainer()

Properties

Item[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
Int32

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

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top