Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="command"></param>
 /// <returns></returns>
 public object ExecuteScalar(CommandStruct command)
 {
     command.Parser();
     return(ExecuteScalar(command.CommandType, command.Sql, command.Parameters));
 }
Пример #2
0
 /// <summary>
 /// 执行Sql语句
 /// </summary>
 /// <param name="command"></param>
 /// <returns></returns>
 public int ExecuteQuery(CommandStruct command)
 {
     command.Parser();
     return(ExecuteQuery(command.CommandType, command.Sql, command.Parameters));
 }
Пример #3
0
 /// <summary>
 /// 执行Sql语句
 /// </summary>
 /// <param name="command"></param>
 /// <returns></returns>
 public IDataReader ExecuteReader(CommandStruct command)
 {
     command.Parser();
     return(ExecuteReader(command.CommandType, command.Sql, command.Parameters));
 }