Ejemplo n.º 1
0
		public DbService()
		{
			Context = new DatabaseContext(DbServiceHelper.CreateConnection());
			Context.Database.CommandTimeout = 180;
			GKScheduleTranslator = new GKScheduleTranslator(this);
			GKDayScheduleTranslator = new GKDayScheduleTranslator(this);
			PassJournalTranslator = new PassJournalTranslator(this);
			JournalTranslator = new JournalTranslator(this);
			AccessTemplateTranslator = new AccessTemplateTranslator(this);
			AdditionalColumnTypeTranslator = new AdditionalColumnTypeTranslator(this);
			CardTranslator = new CardTranslator(this);
			CurrentConsumptionTranslator = new CurrentConsumptionTranslator(this);
			DayIntervalTranslator = new DayIntervalTranslator(this);
			DepartmentTranslator = new DepartmentTranslator(this);
			EmployeeTranslator = new EmployeeTranslator(this);
			HolidayTranslator = new HolidayTranslator(this);
			NightSettingTranslator = new NightSettingTranslator(this);
			OrganisationTranslator = new OrganisationTranslator(this);
			PassCardTemplateTranslator = new PassCardTemplateTranslator(this);
			PositionTranslator = new PositionTranslator(this);
			ScheduleTranslator = new ScheduleTranslator(this);
			ScheduleSchemeTranslator = new ScheduleSchemeTranslator(this);
			GKCardTranslator = new GKCardTranslator(this);
			GKMetadataTranslator = new GKMetadataTranslator(this);
			TimeTrackTranslator = new TimeTrackTranslator(this);
			TimeTrackDocumentTypeTranslator = new TimeTrackDocumentTypeTranslator(this);
			TimeTrackDocumentTranslator = new TimeTrackDocumentTranslator(this);
			TestDataGenerator = new TestDataGenerator(this);
			ImitatorUserTraslator = new ImitatorUserTraslator(this);
			ImitatorScheduleTranslator = new ImitatorScheduleTranslator(this);
			ImitatorJournalTranslator = new ImitatorJournalTranslator(this);
		}
Ejemplo n.º 2
0
 public void SetPositionTranslator(PositionTranslator translator)
 {
     this.translator = translator;
 }