Hi, i have this exception on transaction.commit on Oracle database The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at NHibernate.AdoNet.OracleDataClientBatchingBatcher.AddToBatch(IExpectation expectation) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) at NHibernate.Action.EntityInsertAction.Execute() at NHibernate.Engine.ActionQueue.Execute(IExecutable executable) at NHibernate.Engine.ActionQueue.ExecuteActions(IList list) at NHibernate.Engine.ActionQueue.ExecuteActions() at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session) at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) at NHibernate.Impl.SessionImpl.Flush() at NHibernate.Transaction.AdoTransaction.Commit() The method i invoke works in some case. I did a session.save(myEntity). The entity has this mapping: <class name="Log" table="Log"> <id name="Id" column="ID"> <generator class="native" /> </id> <property name="Data" type="DateTime" not-null="true" /> <property name="IdUtente" /> <property name="TipoUtente" length="1" /> <property name="Tipo" length="50" not-null="true" /> <property name="Pagina" length="100" not-null="true" /> <property name="IdRecord" column="IDRecord" /> <property name="Messaggio" length="200" /> <property name="Note" length="4001"/> </class>
|