public static EspeceHasPlageViewModel getEspeceHasPlage(int idEspece, int idPlage) { EspeceHasPlageDAO eDAO = EspeceHasPlageDAO.getEspeceHasPlage(idEspece, idPlage); int Espece_idEspece = eDAO.Espece_idEspeceDAO; EspeceViewModel e = EspeceORM.getEspece(Espece_idEspece); int Plage_idPlage = eDAO.Plage_idPlageDAO; PlageViewModel p = PlageORM.getPlage(Plage_idPlage); EspeceHasPlageViewModel ep = new EspeceHasPlageViewModel(e, p, eDAO.densiteDAO, eDAO.populationTotaleDAO); return(ep); }
public static EtudeHasPlageViewModel getEtudeHasPlage(int idEtude, int idPlage, int idZone) { EtudeHasPlageDAO eDAO = EtudeHasPlageDAO.getEtudeHasPlage(idEtude, idPlage, idZone); int Etude_idEtude = eDAO.Etude_idEtudeDAO; EtudeViewModel et = EtudeORM.getEtude(Etude_idEtude); int Plage_idPlage = eDAO.Plage_idPlageDAO; PlageViewModel p = PlageORM.getPlage(Plage_idPlage); int Zone_idZone = eDAO.Zone_idZoneDAO; ZoneViewModel z = ZoneORM.getZone(Zone_idZone); EtudeHasPlageViewModel ep = new EtudeHasPlageViewModel(et, p, z, eDAO.name_concatenationDAO); return(ep); }
public static ObservableCollection <EspeceHasPlageViewModel> listeEspeceHasPlages() { ObservableCollection <EspeceHasPlageDAO> lDAO = EspeceHasPlageDAO.listeEspeceHasPlages(); ObservableCollection <EspeceHasPlageViewModel> l = new ObservableCollection <EspeceHasPlageViewModel>(); foreach (EspeceHasPlageDAO element in lDAO) { int Espece_idEspece = element.Espece_idEspeceDAO; EspeceViewModel e = EspeceORM.getEspece(Espece_idEspece); int Plage_idPlage = element.Plage_idPlageDAO; PlageViewModel p = PlageORM.getPlage(Plage_idPlage); EspeceHasPlageViewModel ep = new EspeceHasPlageViewModel(e, p, element.densiteDAO, element.populationTotaleDAO); l.Add(ep); } return(l); }
public static ObservableCollection <EtudeHasPlageViewModel> listeEtudeHasPlages() { ObservableCollection <EtudeHasPlageDAO> lDAO = EtudeHasPlageDAO.listeEtudeHasPlages(); ObservableCollection <EtudeHasPlageViewModel> l = new ObservableCollection <EtudeHasPlageViewModel>(); foreach (EtudeHasPlageDAO element in lDAO) { int Etude_idEtude = element.Etude_idEtudeDAO; EtudeViewModel et = EtudeORM.getEtude(Etude_idEtude); int Plage_idPlage = element.Plage_idPlageDAO; PlageViewModel p = PlageORM.getPlage(Plage_idPlage); int Zone_idZone = element.Zone_idZoneDAO; ZoneViewModel z = ZoneORM.getZone(Zone_idZone); EtudeHasPlageViewModel ep = new EtudeHasPlageViewModel(et, p, z, element.name_concatenationDAO); l.Add(ep); } return(l); }