Ejemplo n.º 1
0
        /// <summary>
        /// Recupère la liste de tous les type d'équipements
        /// </summary>
        /// <returns></returns>
        public List <TypeEquipement> GetAllTypeEquipement()
        {
            cdao = new DAOType();

            try
            {
                return(cdao.GetAllTypeEquipement());
            }
            catch (Exception ex)
            {
                throw new BLLExceptionTypeEquipement("[BLL] GetAllTypeEquipement : \n" + ex.Message, ex);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Create relative database. 
 /// </summary>
 public static void ConfigMySqlDatabase(DAOType.TableType table_type)
 {
     ExecuteCommandOfCreatingDatabase(DatabaseHelper.StringOfCreateDatabase);
     switch (table_type)
     {
         case DAOType.TableType.User:
             ExecuteCommand(DatabaseHelper.StringOfCreateUserInfoTable);
             ExecuteCommand(DatabaseHelper.StringOfCreateExperimentRecordTable);
             break;
         case DAOType.TableType.KeyExperiment:
             ExecuteCommand(DatabaseHelper.GetCommandOfCreateExperimentTables());
             break;
         case DAOType.TableType.ImageVote:
             ExecuteCommand(DatabaseHelper.GetCommandOfCreateImageVoteTables());
             break;
         default:
             break;
     }
 }