Esempio n. 1
0
 public ResourceMgtUnitOfWork(
     [Import(RequiredCreationPolicy = CreationPolicy.NonShared)] IEntityManagerProvider <TempHireEntities>
     entityManagerProvider,
     [Import(AllowDefault = true)] IGlobalCache globalCache = null)
     : base(entityManagerProvider)
 {
     AddressTypes            = new GlobalCacheRepository <AddressType>(entityManagerProvider, globalCache);
     States                  = new GlobalCacheRepository <State>(entityManagerProvider, globalCache);
     PhoneNumberTypes        = new GlobalCacheRepository <PhoneNumberType>(entityManagerProvider, globalCache);
     RateTypes               = new GlobalCacheRepository <RateType>(entityManagerProvider, globalCache);
     StaffingResourceFactory = new StaffingResourceFactory(entityManagerProvider, AddressTypes, PhoneNumberTypes);
     StaffingResources       = new StaffingResourceRepository(entityManagerProvider);
     Search                  = new StaffingResourceSearchService(StaffingResources);
 }
 public ResourceMgtUnitOfWork(
     [Import(RequiredCreationPolicy = CreationPolicy.NonShared)] IEntityManagerProvider<TempHireEntities>
         entityManagerProvider,
     [Import(AllowDefault = true)] IGlobalCache globalCache = null)
     : base(entityManagerProvider)
 {
     AddressTypes = new GlobalCacheRepository<AddressType>(entityManagerProvider, globalCache);
     States = new GlobalCacheRepository<State>(entityManagerProvider, globalCache);
     PhoneNumberTypes = new GlobalCacheRepository<PhoneNumberType>(entityManagerProvider, globalCache);
     RateTypes = new GlobalCacheRepository<RateType>(entityManagerProvider, globalCache);
     StaffingResourceFactory = new StaffingResourceFactory(entityManagerProvider, AddressTypes, PhoneNumberTypes);
     StaffingResources = new StaffingResourceRepository(entityManagerProvider);
     Search = new StaffingResourceSearchService(StaffingResources);
 }