Hi. I am using Castle ActiveRecord 2.1, and I need to assign the next
value of a sequence to a property, but it's not a primary key (I am
using [Property(...)] ). I already have a primary key using
PrimaryKeyType.HiLo
I was searching, but the only way to assign the next value of a sequence
is
Short answer: No way
Long answer: Either use the sequence with ADO.Net or build an
ID-Service. If the ID is a domain requirement (i.e. invoice numbers
that must be sequential etc.), I usually opt for the latter.
-Markus
2010/3/4 Milton Pividori milto...@gmail.com:
Hi. I am using Castle
Thank you Markus.
El jue, 04-03-2010 a las 15:27 +0100, Markus Zywitza escribió:
Short answer: No way
Long answer: Either use the sequence with ADO.Net or build an
ID-Service. If the ID is a domain requirement (i.e. invoice numbers
that must be sequential etc.), I usually opt for the latter.