/// <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="externals">Внешнее.</param> public void InitContext(DataEntityExternals externals) { Context = new DataEntityContext(externals); }