コード例 #1
0
 public Boolean IfExists(params String[] args)
 {
     Boolean result = false;
     using (MySqlConnection myCon = new MySqlConnection(connString))
     {
         myCommand = new MySqlCommand();
         myCommand.Connection = myCon;
         myCommand.Connection.Open();
         using (SelectingCommand SelCmd = new SelectingCommand(myCommand))
         {
             result = SelCmd.GetFIOCheck(args[0], args[1], args[2]);
         }
         myCommand.Connection.Close();
         return result;
     }
 }
コード例 #2
0
 /* */
 public DataTable SelectInformation(params Object[] args)
 {
     DataTable result = null;
     using (MySqlConnection myCon = new MySqlConnection(connString))
     {
         myCommand = new MySqlCommand();
         myCommand.Connection = myCon;
         myCommand.Connection.Open();
         using (SelectingCommand SelCmd = new SelectingCommand(myCommand))
         {
             switch (args.Length)
             {
                 case 0:
                     result = SelCmd.GetReqInfo();
                     break;
                 case 1:
                     result = SelCmd.GetReqInfo((int)args[0]);
                     break;
                 case 2:
                 case 3:
                     result = SelCmd.GetReqInfo((String)args[0], (String)args[1], (String)args[2]);
                     break;
             }
         }
         myCommand.Connection.Close();
     }
     return result;
 }
コード例 #3
0
 public DataTable SelectLastAgreement()
 {
     DataTable result = null;
     using (MySqlConnection myCon = new MySqlConnection(connString))
     {
         myCommand = new MySqlCommand();
         myCommand.Connection = myCon;
         myCommand.Connection.Open();
         using (SelectingCommand SelCmd = new SelectingCommand(myCommand))
         {
             result = SelCmd.GetLastAgreement();
         }
         myCommand.Connection.Close();
     }
     return result;
 }
コード例 #4
0
 public DataTable SelectDepoInfo(params Int32[] info)
 {
     DataTable result = null;
     using (MySqlConnection myCon = new MySqlConnection(connString))
     {
         myCommand = new MySqlCommand();
         myCommand.Connection = myCon;
         myCommand.Connection.Open();
         using (SelectingCommand SelCmd = new SelectingCommand(myCommand))
         {
             result = SelCmd.GetDepoInfo(info);
         }
         myCommand.Connection.Close();
     }
     return result;
 }