Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 /// <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));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// get dataSet
 /// </summary>
 /// <param name="strSql">string</param>
 /// <returns>dataset</returns>
 public DataSet ExecuteSqlForDs(string strSql)
 {
     return(RailStuDb_Sql.ExecuteSqlForDS(strConn.StrSql, strSql));
 }
Ejemplo n.º 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));
 }