예제 #1
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="externals">Внешнее.</param>
        public DataEntityContext(DataEntityExternals externals)
        {
            Service = new DataEntityService(externals.DataEntityDbFactory);

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