c# - Auto generation of ID -


I need to generate an ID with the following attributes:

  1. ID must have two part 'type' and 'auto incremental' number.

  2. 'type' is an integer and the value can be 1, 2 or 3

  3. 'Auto-incremented' starts with the number 10001 and every time the id's ID is generated.

  4. then the generated ID = 210001

  5. > There can be a Hundrade for the creation of User ID. Now my question is, can this be done without any stored procedures, which has no objection to the ID ID.

    I am using ASP.NET (C #), Oracle, NHBinnet

As soon as you use Oracle, you can use it for it.

Every time you call, your_sequence.NEXTVAL returns a unique number.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -