public static REAResumen Get(Expedient expediente) { CriteriaEx criteria = OutputInvoice.GetCriteria(OutputInvoice.OpenSession()); if (nHManager.Instance.UseDirectSQL) { criteria.Query = REAResumen.SELECT(expediente); } OutputInvoice.BeginTransaction(criteria.Session); REAResumen obj = DataPortal.Fetch <REAResumen>(criteria); OutputInvoice.CloseSession(criteria.SessionCode); return(obj); }