I'd like to use a sequential guid for a primary key of an entity. Ideally, the key generator should provide unique sequential (or at least nearly sequential) guids regardless of multiple processes concurrently creating instances of the entity.

The DO feature documentation lists "Fast key generation (Hi-Lo algorithm, sequential guid algorithm)," but I cannot find any documentation on the built-in algorithm or how to use it.

Does this key generator already exist, and if so, can someone point me in the right direction?

P.S. I'm very new to DO and so far I'm blown away -- great work!

asked Jan 06 '11 at 00:12

mpetito's gravatar image

mpetito
17225


One Answer:

Hello,

The generator you are asking about will be included in DataObjects.Net in the upcoming version (4.4). For now it is in beta stage and is not intended to be used in real applications.

So, I'd recommend you to use default Guid generator until sequential one is ready.

answered Jan 06 '11 at 03:39

Dmitri%20Maximov's gravatar image

Dmitri Maximov
22111211

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×11
×8

Asked: Jan 06 '11 at 00:12

Seen: 10,254 times

Last updated: Jan 06 '11 at 03:39

powered by OSQA