/// <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); } }
/// <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; } }