public int ExecuteNonQuery(string sqlString) { ISession session = SessionFactory.OpenSession(this._AssemblyName); int result = DirectRun.ExecuteNonQuery(session, sqlString); session.Close(); session.Dispose(); return(result); }
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)); }