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