public List <Course> GetAll()
 {
     return(Session.Query <Course>().ToList());
 }
 /// <summary>
 /// Fonction permettant de récupérer un résultat selon l'id de sa course et le numDossard de son coureur (ajouter [0])
 /// </summary>
 /// <param name="numDossard"></param>
 /// <param name="idCourse"></param>
 /// <returns></returns>
 public IList <Resultat> ListeResultatAvecDossard(int numDossard, int idCourse)
 {
     return(Session.Query <Resultat>().Where(p => p.NumDossard == numDossard && p.LaCourse.Id == idCourse).ToList());
 }
Example #3
0
 public IList <User> GetAll()
 {
     return(Session.Query <User>().ToList());
 }
Example #4
0
 public IList <NormalAccount> GetCompteFaible()/* A MODIFIER !!!*/
 {
     return(Session.Query <NormalAccount>().ToList());
 }
Example #5
0
 public List <Resultat> GetAll()
 {
     return(Session.Query <Resultat>().ToList());
 }
 public IList <Utilisateur> GetAll()
 {
     return(Session.Query <Utilisateur>().ToList());
 }
 public IList <Participation> SearchParticipationByCourseId(int idCourse)
 {
     return(Session.Query <Participation>().Where(p => p.Course.IdCourse == idCourse).ToList());
 }
Example #8
0
 public IList <Categorie> GetAll()
 {
     return(Session.Query <Categorie>().ToList());
 }
 public IList <Participation> GetAll()
 {
     return(Session.Query <Participation>().ToList());
 }
 public IList <Participation> SearchParticipationByCoureurId(int idCoureur)
 {
     return(Session.Query <Participation>().Where(p => p.Participant.IdCoureur == idCoureur).ToList());
 }
 public IList <Reponse> GetAll()
 {
     return(Session.Query <Reponse>().ToList());
 }
 /// <summary>
 /// Fonction permettant de récupérer la liste des résultat d'un coureur grâce à son numLicence
 /// </summary>
 /// <param name="numLicence"></param>
 /// <returns></returns>
 public IList <Resultat> ListeResultatsCoureur(int numLicence)
 {
     return(Session.Query <Resultat>().Where(c => c.LeCoureur.NumLicence == numLicence).ToList());
 }
 /// <summary>
 /// Fonction permettant de récupérer la liste des résultats d'une course grâce à l'id de la course
 /// </summary>
 /// <param name="idCourse"></param>
 /// <returns></returns>
 public IList <Resultat> ListeResultatsCourse(int idCourse)
 {
     return(Session.Query <Resultat>().Where(p => p.LaCourse.Id == idCourse).ToList());
 }
 public bool Exist(string name)
 {
     return(Session.Query <Utilisateur>().Any(c => c.Nom == name));
 }
Example #15
0
 public IList <Relation> GetAll()
 {
     return(Session.Query <Relation>().ToList());
 }
 public bool Exist(Utilisateur user)
 {
     return(Session.Query <Utilisateur>().Any(c => c.Nom == user.Nom));
 }
Example #17
0
 public Utilisateur GetUserById(int id)
 {
     return(Session.Query <Utilisateur>().Where(u => u.Id == id).Single <Utilisateur>());
 }
 public IList <Genre> GetAll()
 {
     return(Session.Query <Genre>().ToList());
 }
 public IList <Personne> GetAll()
 {
     return(Session.Query <Personne>().ToList());
 }
Example #20
0
 public List <Album> GetAll()
 {
     return(Session.Query <Album>().ToList());
 }
Example #21
0
 public List <Participant> GetAll()
 {
     return(Session.Query <Participant>().ToList());
 }
 public List <Domain.Action> GetAll()
 {
     return(Session.Query <Domain.Action>().ToList());
 }
Example #23
0
 /// <summary>
 /// Fonction récupérant la liste des coureurs en bdd
 /// </summary>
 /// <returns></returns>
 public IList <Coureur> GetAll()
 {
     return(Session.Query <Coureur>().ToList());
 }
Example #24
0
 public IList <NormalAccount> GetAll()
 {
     return(Session.Query <NormalAccount>().ToList());
 }
Example #25
0
 /// <summary>
 /// Fonction permettant de récupérer un coureur selon son numéro de licence (ajouter [0] pour le récupérer)
 /// </summary>
 /// <param name="numLicence"></param>
 /// <returns></returns>
 public IList <Coureur> ListeCoureur(int numLicence)
 {
     return(Session.Query <Coureur>().Where(c => c.NumLicence == numLicence).ToList());
 }
 public bool Exist(Course course)
 {
     return(Session.Query <Course>().Any(c => c.Nom == course.Nom));
 }
Example #27
0
 /// <summary>
 /// Fonction permettant de récupérer un coureur grâce à son nom (ajouter [0])
 /// </summary>
 /// <param name="nom"></param>
 /// <returns></returns>
 public IList <Coureur> ListeCoureurAvecNom(string nom)
 {
     return(Session.Query <Coureur>().Where(c => c.Nom == nom).ToList());
 }
Example #28
0
 public IList <Objet> GetAll()
 {
     return(Session.Query <Objet>().ToList());
 }
 /// <summary>
 /// Fonction permettant de récupérer un résultat selon l'id de sa course et le numLicence de son coureur (ajouter [0])
 /// </summary>
 /// <param name="idCourse"></param>
 /// <param name="numLicence"></param>
 /// <returns></returns>
 public IList <Resultat> listeResultat(int idCourse, int numLicence)
 {
     return(Session.Query <Resultat>().Where(p => p.LaCourse.Id == idCourse && p.LeCoureur.NumLicence == numLicence).ToList());
 }