public RawHtml GetRawHtmlById(int Rawhtmlid)
{
using (ISession session = HibernateHelper.GetSession().OpenSession()) {
using (ITransaction transaction = session.BeginTransaction()) {
try {
RawHtml pel = new RawHtml();
pel = HibernateHelper.SelectIstance<RawHtml>(session, new string[] { "Rawhtmlid" }, new object[] { Rawhtmlid }, new Operators[] { Operators.Eq });
return pel;
} catch (Exception ex) {
throw ex;
} finally {
session.Flush();
session.Close();
}
}
}
}