Пример #1
0
        /// <summary>
        /// Construtor
        /// </summary>
        /// <param name="context"></param>
        public UfwCart(ContextOraBase context = null, InfraDataEventLogging log = null) : base(context)
        {
            this._context = context;
            if (_context != null)
            {
                base.ContextCore = this._context;
            }

            _log = log;
        }
        public UnitOfWorkDataBaseCartNew(string contextName, ContextMainCartNew context = null, InfraDataEventLogging log = null) : base(context, log)
        {
            _context = context;

            if (_context == null)
            {
                _context     = new ContextMainCartNew(contextName);
                base.Context = _context;
            }

            _repositoriesCartNew = new RepositoriesFactoryCartNew(_context);
            base.Repositories    = _repositoriesCartNew;
        }