How do I generate ids with NHibernate and Firebird?
问题 I'm trying to insert some new objects into a firebird database using NHibernate. I get the error "could not get next sequence value[SQL: SQL not available]" Here is the mapping I'm using at present. Note ANML_EVNT is the name of the generator I want to use. <id name="Id" column="ID" type="integer"> <generator class="sequence"> <param name="sequence">ANML_EVNT></param> </generator> </id> 回答1: If you still are looking for an answer here is how I've used it successfully. I use the "native"