stovesy wrote:
I have a list index column with a base of 1, and as such, when I read this into my list collection, I have an empty object at position 0.
Does anyone know if base is implemented and if so, how and where it is used.
Many thanks
This is not an NHibernate thing, but rather a CLR thing. NHibernate is simply mapping the index of the item in the collection to a column in the database so that when it is reloaded you can have the exact same collection you had before persistence.
There would be no way to have initially set the value to 1 as the base at the 0th entry in the list. It sounds to me like you are using the "index" column for something other than it is intended.
If that is the case consider using a dictionary (map) instead of a list. I think this is really what you want. You will then only have the number of items you requested. This is what we do when we have sequenced items which store their sequence values starting at a base of 1 (or any base really I guess).
Let me know if I misunderstood your issue.