/// <summary>
 /// Execute more than one sql commands
 /// </summary>
 /// <param name="strSQL">string</param>
 /// <returns>int</returns>
 public int ExecuteSqls(string[] strSQLs)
 {
     return(RailStuDb_Sql.ExecuteSqls(strConn.StrSql, strSQLs));
     //return -1;
 }
 /// <summary>
 /// Return for an object
 /// </summary>
 /// <param name="strSQL">string</param>
 /// <returns>object</returns>
 public Object ExecuteSqlForValueEx(string strSql)
 {
     return(RailStuDb_Sql.ExecuteSqlForValueEx(strConn.StrSql, strSql));
 }
 /// <summary>
 /// Excute SQL Commands to reader. Just for query use.
 /// </summary>
 /// <param name="strSql">string</param>
 /// <returns>int</returns>
 public int ExecuteSqlCmdEx(string strSql)
 {
     return(RailStuDb_Sql.ExecuteSqlCmdEx(strConn.StrSql, strSql));
 }
 /// <summary>
 /// get dataSet
 /// </summary>
 /// <param name="strSql">string</param>
 /// <returns>dataset</returns>
 public DataSet ExecuteSqlForDs(string strSql)
 {
     return(RailStuDb_Sql.ExecuteSqlForDS(strConn.StrSql, strSql));
 }
Example #5
0
 /// <summary>
 /// Just get a single value
 /// </summary>
 /// <param name="strSQL">string</param>
 /// <returns>int</returns>
 public int ExecuteSqlForValue(string strSql)
 {
     return(RailStuDb_Sql.ExecuteSqlForValue(strConn.StrSqlOut, strSql));
 }