/// <summary> /// Конструктор. /// </summary> /// <param name="externals">Внешнее.</param> public DataEntityContext(DataEntityExternals externals) { Service = new DataEntityService(externals.DataEntityDbFactory); Jobs = new DataEntityJobs( externals.CoreBaseResourceErrors, Service ); }
/// <summary> /// Конструктор. /// </summary> /// <param name="coreBaseResourceErrors">Ядро. Основа. Ресурсы. Ошибки.</param> /// <param name="service">Сервис.</param> public DataEntityJobs( CoreBaseResourceErrors coreBaseResourceErrors, DataEntityService service ) { JobDatabaseMigrate = new DataEntityJobDatabaseMigrateService( service.MigrateDatabase, coreBaseResourceErrors ); }