public RepositoryUser(IConnectionFactory connectionFactory) : base(connectionFactory) { _roleDao = DaoFactory.CreateRoleDao(); _userDao = DaoFactory.CreateUserDao(); _addressDao = DaoFactory.CreateAddressDao(); _cityDao = DaoFactory.CreateCityDao(); }
public void CreateData() { var factory = OrnamentContext.DaoFactory.GetDaoFactory <IRegionDaoFactory>(); IProvicenDao provinceDao = factory.CreateProvinceDao(); List <Province> provicnes = Province.ProvinceData; foreach (Province item in provicnes) { provinceDao.Save(item); } ICityDao cityDao = factory.CreateCityDao(); IList <City> cities = City.CreateNewCityData(provicnes); foreach (City city in cities) { cityDao.Save(city); } IAreaDao areaDao = factory.CreateAreaDao(); var areas = Area.CreateData(cities); foreach (Area city in areas) { areaDao.Save(city); } areaDao.Flush(); }
private DependencyManager() { _adminDao = new AdminDao(); _adminLogic = new AdminLogic(_adminDao); _cityDao = new CityDao(); _cityLogic = new CityLogic(_cityDao); _skillDao = new SkillDao(); _skillLogic = new SkillLogic(_skillDao); _responseDao = new ResponseDao(); _employeeDao = new EmployeeDao(); _employeeLogic = new EmployeeLogic(_employeeDao, _responseDao, _cityLogic, _skillLogic); _vacancyDao = new VacancyDao(); _vacancyLogic = new VacancyLogic(_vacancyDao, _skillLogic, _responseDao); _employerDao = new EmployerDao(); _employerLogic = new EmployerLogic(_employerDao, _cityLogic, _vacancyLogic); _hiringLogic = new HiringLogic(_vacancyLogic, _employeeLogic); _commonLogic = new CommonLogic(_adminDao, _employerDao, _employeeDao); }
public CityBus(ICityDao cityDao, ILogger <CityBus> logger, IFactoryDao factoryDao, IWorkshopDao workshopDao, IDeviceDao deviceDao) { this._cityDao = cityDao; this._logger = logger; this._factoryDao = factoryDao; this._workshopDao = workshopDao; this._deviceDao = deviceDao; }
private void Init(ILocationShortNameDao shortNameDao, IStateDao stateDao, ICityDao cityDao, ICountryDao countryDao) { _shortNameDao = shortNameDao; //_zipCodeDao = zipCodeDao; _stateDao = stateDao; _cityDao = cityDao; _countryDao = countryDao; }
public LocationController(ICommandBus bus, ICountryDao _countryDao, INeighbourhoodDao _neighbourhoodDao, IStateDao _stateDao, ICityDao _cityDao) : base() { this.bus = bus; this._CountryDao = _countryDao; this._NeighbourhoodDao = _neighbourhoodDao; this._StateDao = _stateDao; this._CityDao = _cityDao; }
public CityManager() { logger.Info("Begin initiate CityManager."); this.provinceDao = new ProvinceDao(); this.cityDao = new CityDao(); this.countyDao = new CountyDao(); logger.Info("Initiate CityManager done."); }
public DeviceDataDao(IThresholdDao thresholdDao, IFieldDao fieldDao, ICityDao cityDao) { var client = new MongoClient(Constant.getMongoDBConnectionString()); var database = client.GetDatabase("iotmanager"); _deviceData = database.GetCollection <DeviceDataModel>("monitordata"); _alarmInfo = database.GetCollection <AlarmInfoModel>("alarminfo"); this._thresholdDao = thresholdDao; this._fieldDao = fieldDao; this._cityDao = cityDao; }
/* * 构造函数 * 需要注入DeviceDao, FieldDao, Logger */ public DeviceBus(IDeviceDao deviceDao, IFieldDao fieldDao, ICityDao cityDao, IoTHub iotHub, ILogger <DeviceBus> logger) { this._deviceDao = deviceDao; this._fieldDao = fieldDao; this._cityDao = cityDao; this._iotHub = iotHub; this._logger = logger; }
public SystemDomainValuesController(ICommandBus bus, ICurrencyDao _CurrencyDao, ILanguageDao _LanguageDao, ICountryDao _countryDao, INeighbourhoodDao _neighbourhoodDao, IStateDao _stateDao, ICityDao _cityDao, IPersonDao _PersonDao, IPersonOriginTypeDao _personOriginTypeDao, IPersonProfileDao _personProfileDao, IPersonStatusDao _personStatusDao, IPersonTypeDao _personTypeDao, IPersonAddressDao _personAddressDao, IPersonExpertiseDao _personExpertiseDao, IFileTempDao fileTemp, ISecuritySourceDao _SecurityDao) : base() { this.bus = bus; this._CurrencyDao = _CurrencyDao; this._LanguageDao = _LanguageDao; this._CountryDao = _countryDao; this._NeighbourhoodDao = _neighbourhoodDao; this._StateDao = _stateDao; this._CityDao = _cityDao; this._PersonDao = _PersonDao; this._PersonOriginTypeDao = _personOriginTypeDao; this._PersonProfileDao = _personProfileDao; this._PersonStatusDao = _personStatusDao; this._PersonTypeDao = _personTypeDao; this._PersonAddressDao = _personAddressDao; this._listFileTemp = new List <int>(); this._FileTemp = fileTemp; this._PersonExpertiseDao = _personExpertiseDao; this._SecurityDao = _SecurityDao; }
public CityLogic(ICityDao cityDao) { this._cityDao = cityDao; }
public CityLogic(ICityDao cityDao, ICityValidationLogic cityValidation) { this.cities = cityDao; this.validation = cityValidation; }
/// <summary> /// Constuctor that also takes in the short name dao. /// </summary> /// <param name="shortNameDao"></param> /// <param name="zipCodeDao"></param> /// <param name="stateDao"></param> public LocationService(ICountryDao countryDao, IStateDao stateDao, ICityDao cityDao, ILocationShortNameDao shortNameDao) { Init(shortNameDao, stateDao, cityDao, countryDao); }
public CityLogic(ICityDao cityDao) { _cityDao = cityDao; }
public CityBus(ICityDao cityDao, ILogger <CityBus> logger) { this._cityDao = cityDao; this._logger = logger; }
public CityService(ICityDao cityDao) { _cityDao = cityDao; }