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