public void save(logcls lgcls) { ITransaction tx = null; try { if (!session.IsConnected) { session.Reconnect(); } tx = session.BeginTransaction(); //lgcls.s session.Save(lgcls); tx.Commit(); session.Disconnect(); } catch (Exception ex) { tx.Rollback(); session.Disconnect(); // handle exception } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)