I am using the following generic code to save entities.
using (ITransaction tx = session.BeginTransaction())
{
try
{
entity.DateModified = DateTime.Now;
session.SaveOrUpdate(entity);
session.Flush();
tx.Commit();
return entity;
}
catch (Exception)
{
tx.Rollback();
throw;
}
}
However, when I watch SQL Profiler I don't see any BEGIN TRANSACTION
being sent to SQL Server. Is this normal, expected?