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

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

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