Exemplo n.º 1
0
 public object ExecuteScalar(string cmdText, Spring.Data.Common.IDbParameters parameters)
 {
     try
     {
         return(base.ExecuteScalar(CommandType.Text, cmdText, parameters));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 2
0
        public int ExecuteNonQuery(string cmdText, Spring.Data.Common.IDbParameters parameters)
        {
            int effectCount = -1;

            try
            {
                effectCount = base.ExecuteNonQuery(CommandType.Text, cmdText, parameters);
            }
            catch (Exception e)
            {
                throw e;
            }
            return(effectCount);
        }
Exemplo n.º 3
0
 public System.Data.DataTable QueryDataTable(System.Data.CommandType commandType, string cmdText, Spring.Data.Common.IDbParameters parameters)
 {
     if (commandType == CommandType.StoredProcedure)
     {
         cmdText = cmdText.Split(' ')[0];
     }
     try
     {
         return(base.DataTableCreateWithParams(commandType, cmdText, parameters));
     }
     catch (Exception e)
     {
         throw e;
     }
 }