This is a migrated thread and some comments may be shown as answers.

Q: Composite sequential id's

1 Answer 20 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 10 Jun 2010, 06:33 AM
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)

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 10 Jun 2010, 04:46 PM
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.
Tags
Getting Started
Asked by
Alex
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or