예제 #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;
     }
 }
예제 #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);
        }
예제 #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;
     }
 }