Print Page | Close Window

Negative Identity values

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=2767
Printed Date: 07-Jun-2024 at 8:52pm


Topic: Negative Identity values
Posted By: agrogers
Subject: Negative Identity values
Date Posted: 15-Jun-2011 at 7:44am
Hi

I would like to use negative identity values - starting at -1 and subtracting one from each for each new identity value.  I tried it just now but got an error.  Just wanted to confirm that DevForce Classic supports negative identity values.

Thanks
Andrew



Replies:
Posted By: kimj
Date Posted: 15-Jun-2011 at 10:44am
The default implementation does not support negative identity values.  It is possible, although not something we really encourage, to implement a custom IIdentityIdGenerator to handle ID generation logic.  Even with a custom IIdentityIdGenerator I can't promise that this would work though.  It would also require the latest Classic release, version 3.7.4.



Print Page | Close Window