Print Page | Close Window

Generating Custom Primary Key Values in DevForce

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=21
Printed Date: 26-Apr-2025 at 5:26pm


Topic: Generating Custom Primary Key Values in DevForce
Posted By: Customer
Subject: Generating Custom Primary Key Values in DevForce
Date Posted: 30-May-2007 at 4:40pm

To use custom IDs (i.e., non-GUID and non-Identity) in DevForce, I understand that my app must include a class that implements your IIdGenerator interface.  I’ve heard you have an implementation of this that generates numeric IDs and maintains different ID pools for different entities.  Where can I find it?




Replies:
Posted By: IdeaBlade
Date Posted: 30-May-2007 at 4:41pm

Three implementations of IIDGenerator are shipped with the product, and are installed in the Sample Code directory (e.g., C:\Program Files\IdeaBlade DevForce\Sample Code).  These include:

 

Class

Function

NumericIdGenerator

Generates sequential numeric IDs from a single pool used across all entities.

OracleSequenceIdGenerator

Generates Oracle sequences.

PooledIdGenerator

Generates sequential numeric IDs from multiple, independent pools, one for each entity.




Print Page | Close Window