예제 #1
0
 public RelationShipTest()
 {
     IUnitOfWork ophtalmocontext = new OphtalmoContext();
     CompteRendusRepo = new Repository<CompteRendu>(ophtalmocontext);
     ExamsRepo= new Repository<Examen>(ophtalmocontext);
     MaladeRepo = new Repository<Malade>(ophtalmocontext);
     MedecinRepo=new Repository<Medecin>(ophtalmocontext);
 }
 public BusinessService()
 {
     rep = new Repository();
 }
예제 #3
0
 //protected Repository<Malade> MaladeRepo { get; set; }
 //protected Repository<Examen> ExamenRepo { get; set; }
 //protected Repository<CompteRendu> CompteRenduRepo { get; set; }
 public MedecinTest()
 {
     IUnitOfWork ophtalmocontext = new OphtalmoContext();
     Repo = new Repository<Medecin>(ophtalmocontext);
 }
예제 #4
0
        private void LoadRepos()
        {
            try
            {
                IUnitOfWork ctx = SimpleIoc.Default.GetInstance<OphtalmoContext>();

                ExamensRepository = new Repository<Examen>(ctx);
                ComptesRendusRepository = new Repository<CompteRendu>(ctx);
                MedecinRepository = new Repository<Medecin>(ctx);
                ExamensBasicsRepository = new XmlRepository<Examen>("exams.config");
                ExamenBasics = new ObservableCollection<Examen>(ExamensBasicsRepository.Get().ToList());
                FindMedecin();
            }
            catch (Exception e)
            {
                e.SaveException();
            }
        }
예제 #5
0
 public MaladeTest()
 {
     IUnitOfWork ophtalmocontext = new OphtalmoContext();
     Repo = new Repository<Malade>(ophtalmocontext);
 }
예제 #6
0
 public ExamenTest()
 {
     IUnitOfWork ophtalmocontext = new OphtalmoContext();
     Repo = new Repository<Examen>(ophtalmocontext);
 }
예제 #7
0
 private void LoadRepos()
 {
     try
     {
         IUnitOfWork ctx = SimpleIoc.Default.GetInstance<OphtalmoContext>();
         MaladesRepository = new Repository<Malade>(ctx);
     }
     catch (Exception e)
     {
         e.SaveException();
     }
 }
예제 #8
0
 public CompteRenduTest()
 {
     IUnitOfWork ophtalmocontext = new OphtalmoContext();
     Repo = new Repository<CompteRendu>(ophtalmocontext);
 }