public static object Invoke(string request) { using (var session = NHibernateHelper.OpenSession()) { return(RemoteQueryExecutor.Do(request, session)); } }
public BaseEntity GetSingle(string query) { using (var session = NHibernateHelper.OpenSession()) return((BaseEntity)RemoteQueryExecutor.Do(query, session)); }
public IEnumerable <BaseEntity> GetEnumerable(string query) { using (var session = NHibernateHelper.OpenSession()) return((IEnumerable <BaseEntity>)RemoteQueryExecutor.Do(query, session)); }
public object GetScalar(string query) { using (var session = NHibernateHelper.OpenSession()) return(RemoteQueryExecutor.Do(query, session)); }