Good day.
This example code
Code:
...
User newUser = new User();
newUser.Id = "joe_cool";
newUser.UserName = "Joseph Cool";
newUser.Password = "abc123";
newUser.EmailAddress = "joe@cool.com";
newUser.LastLogon = DateTime.Now;
// Tell NHibernate that this object should be saved
session.Save(newUser);
// commit all of the changes to the DB and close the ISession
transaction.Commit();
session.Close();
...
hangs on "transaction.Commit()" string.
I take source code of NHibernate and find that thread hangs in
BatcherImpl.cd
Code:
public int ExecuteNonQuery( IDbCommand cmd )
{
int rowsAffected = 0;
CheckReaders();
Prepare( cmd );
//cmd.CommandText = "INSERT INTO star VALUES(1, '2')";
//cmd.ExecuteScalar();
rowsAffected = cmd.ExecuteNonQuery();
return rowsAffected;
}
on
"rowsAffected = cmd.ExecuteNonQuery();" string.
Did anybode see this behavior? Maybe anyone know, how to avoid this.