public Soumission Retrieve(RetrieveSoumissionArgs args)
        {
            var result = from s in session.Query<Soumission>()
                         where s.IdSoumission == args.IdSoumission
                         select s;

            return result.FirstOrDefault();
        }
Ejemplo n.º 2
0
 private void ChargerSoumissions()
 {
     ServiceFactory.Instance.Register<ISoumissionService, NHibernateSoumissionService>(new NHibernateSoumissionService());
     ServiceFactory.Instance.Register<IItemSoumissionService, NHibernateItemSoumissionService>(new NHibernateItemSoumissionService());
     //Charge la liste de toutes les soumissions
     _soumissionService = ServiceFactory.Instance.GetService<ISoumissionService>();
     RetrieveSoumissionArgs = new RetrieveSoumissionArgs();
     ListeSoumissions = _soumissionService.RetrieveAll();
     datagridListeSoumissions.ItemsSource = ListeSoumissions;
 }