Q: Composite sequential id's

2 posts, 0 answers
  1. Alex
    Alex avatar
    141 posts
    Member since:
    Mar 2010

    Posted 10 Jun 2010 Link to this post

    Hi,

    I"m just wondering, is there a way to (safely) generate Composite Sequtial ID's with OpenAccess?

    e.g.
    { ParentId, ChildId }
    1,1
    1,2
    1,3
    2,1
    2,2
    3,1
    3,2
    etc.

    Is there a way to do this with OpenAccess with out running into concurrency issues? (Unfortunately, this is a requirement for invoice numbers so using other methods is not possible)
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 10 Jun 2010 Link to this post

    Hello Alexander Sun,

    I am afraid that this is currently not possible with Telerik OpenAccess ORM. If you would like to have a behavior like this you should implement your own logic that will keep track of the latest entries in the database and based on them to generate sequential and unique keys. We are sorry for the inconvenience this might be causing you.

    Regards,
    Petar
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top