------ Test started: Assembly: NHibernateSample.Test.dll ------NHibernate: SELECT customer0_.CustomerIdas CustomerId2_0_, customer0_.Version as Version2_0_, customer0_.FirstName as FirstName2_0_, customer0_.LastName as LastName2_0_ FROM Customer customer0_ WHERE customer0_.CustomerId=:p0;:p0 = 1 [Type: Int32 (0)]
NHibernate: UPDATE"Order" SET Customer = null WHERE Customer = :p0;:p0 = 1 [Type: Int32 (0)]
NHibernate: exec pd_customer:p0,:p1;:p0= 1 [Type: Int32 (0)], :p1 = 1 [Type: Int32 (0)]
Test'NHibernateSample.Test.CRUDWithTransctionTest.DeleteCustomerTest' failed: NHibernate.Exceptions.GenericADOException : could not delete: [NHibernateSample.Domain.Customer#1][SQL: exec pd_customer?,?]----> System.Data.OracleClient.OracleException : ORA-00900: ?? SQL ??在 NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id, Object version, Int32 j, Object obj, SqlCommandInfo sql, ISessionImplementor session, Object[] loadedState)
在 NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id, Object version, Object obj, ISessionImplementor session)
在 NHibernate.Action.EntityDeleteAction.Execute()
在 NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
在 NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
在 NHibernate.Engine.ActionQueue.ExecuteActions()
在 NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
在 NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEventevent)
在 NHibernate.Impl.SessionImpl.Flush()
CRUDWithTransction.cs(54,0): 在 NHibernateSample.DataAccess.CRUDWithTransction.DeleteCustomerTransction(Customer cus)
CRUDWithTransctionTest.cs(71,0): 在 NHibernateSample.Test.CRUDWithTransctionTest.DeleteCustomerTest()--OracleException
在 System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc)
在 System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor& rowidDescriptor, ArrayList&resultParameterOrdinals)
在 System.Data.OracleClient.OracleCommand.ExecuteNonQueryInternal(Boolean needRowid, OciRowidDescriptor&rowidDescriptor)
在 System.Data.OracleClient.OracleCommand.ExecuteNonQuery()
在 NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
在 NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id, Object version, Int32 j, Object obj, SqlCommandInfo sql, ISessionImplementor session, Object[] loadedState)0 passed, 1 failed, 0 skipped, took 1.93 seconds (NUnit 2.5.5).