コード例 #1
0
 public override int RunQueryScalar(IDbConnection connection,
     ISqlQueryDef query,
     IDbTransaction transaction = null,
     CommandBehavior commandBehavior = CommandBehavior.Default)
 {
     int value;
     try
     {
         value =base.RunQueryScalar(connection, query, transaction, commandBehavior);
     }
     catch(Exception e)
     {
         Console.WriteLine(e.Message);
         value = 9999;
     }
     return value;
 }
コード例 #2
0
 public override int RunQueryInsert(IDbConnection connection,
     ISqlQueryDef query,
     IDbTransaction transaction = null,
     CommandBehavior commandBehavior = CommandBehavior.Default)
 {
     int newId;
     try
     {
         newId = base.RunQueryInsert(connection, query,transaction, commandBehavior);
     }
     catch(Exception e)
     {
         Console.WriteLine(e.Message);
         newId = 9999;
     }
     return newId;
 }
コード例 #3
0
        public override int RunQueryScalar(IDbConnection connection,
                                           ISqlQueryDef query,
                                           IDbTransaction transaction      = null,
                                           CommandBehavior commandBehavior = CommandBehavior.Default)
        {
            int value;

            try
            {
                value = base.RunQueryScalar(connection, query, transaction, commandBehavior);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                value = 9999;
            }
            return(value);
        }
コード例 #4
0
        public override int RunQueryInsert(IDbConnection connection,
                                           ISqlQueryDef query,
                                           IDbTransaction transaction      = null,
                                           CommandBehavior commandBehavior = CommandBehavior.Default)
        {
            int newId;

            try
            {
                newId = base.RunQueryInsert(connection, query, transaction, commandBehavior);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                newId = 9999;
            }
            return(newId);
        }