Example #1
0
        public int ExecuteNonQuery(string sqlString)
        {
            ISession session = SessionFactory.OpenSession(this._AssemblyName);
            int      result  = DirectRun.ExecuteNonQuery(session, sqlString);

            session.Close();
            session.Dispose();
            return(result);
        }
Example #2
0
        public string GetPageSet(int pageIndex, int pageSize, string tableName, string where, string urlFormat, int mode)
        {
            ISession session     = SessionFactory.OpenSession(this._AssemblyName);
            int      recordCount = DirectRun.GetRecordCount(session, tableName, where);

            session.Close();
            session.Dispose();
            return(SplitPage.GetPageSet(pageIndex, pageSize, recordCount, urlFormat, mode));
        }