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(); }
//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); }
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(); } }
public MaladeTest() { IUnitOfWork ophtalmocontext = new OphtalmoContext(); Repo = new Repository<Malade>(ophtalmocontext); }
public ExamenTest() { IUnitOfWork ophtalmocontext = new OphtalmoContext(); Repo = new Repository<Examen>(ophtalmocontext); }
private void LoadRepos() { try { IUnitOfWork ctx = SimpleIoc.Default.GetInstance<OphtalmoContext>(); MaladesRepository = new Repository<Malade>(ctx); } catch (Exception e) { e.SaveException(); } }
public CompteRenduTest() { IUnitOfWork ophtalmocontext = new OphtalmoContext(); Repo = new Repository<CompteRendu>(ophtalmocontext); }