Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating Consecutive Numbers
Message
From
29/03/2010 09:38:32
 
 
To
29/03/2010 08:43:25
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01455132
Message ID:
01457816
Views:
29
>>>>Hi,
>>>>
>>>>how do I generate consecutive numbers (for use as a customer number for example)? Is there anything in the framework that achieves this? I found reference to a function that autoincrements values, but it appears to b eonly on Primary Keys, this field is a candidate key.
>>>
>>>Have you considered using 2 columns? One would be an identify column that is your PK on the table. That value could be stored to the user-modifiable customer code if the user doesn't enter a code. That way you can do all your linking to related tables on the identity column and use the user-modifiable column to display a custom code, if desired.
>>
>>Thanks for the idea, but I don't think it will work because I am not using integers as my primary keys, but Guids.
>
>Frank, if the user doesn't choose to enter or use a customer number do you even need one? Can it just be left empty?
>Tim

Yes, I need one in order to identify different people with the same name.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform