I am trying to use NHibernate (and FluentNHibernate ) on top of an obsolete database. I also use SQLite for tests .
When I try to create a test for mappings using FluentNHibernate PersistenceSpecification , I get the following exception:
NHibernate.Exceptions.GenericADOException: Failed to get initial value for increment generator
I map my id as follows:
Id(f => f.ID, "OID").GeneratedBy.Increment();
My test uses SQLite, so when I ran them, the tables were initially empty.
Does anyone have any ideas how to solve this?
Thanks.
sqlite nhibernate fluent-nhibernate
caiokf
source share