示例#1
0
        public static IMeasurementRepository CreateMeasurementRepository(AirMonitorDbContext db)
        {
            MeasurementDao         dao        = MeasurementDao.Factory.Create(db);
            IMeasurementRepository repository = MeasurementRepository.Factory.Create(dao);

            return(repository);
        }
示例#2
0
        public static IInstallationRepository CreateInstallationRepository(AirMonitorDbContext db)
        {
            InstallationDao         dao        = InstallationDao.Factory.Create(db);
            IInstallationRepository repository = InstallationRepository.Factory.Create(dao);

            return(repository);
        }