Пример #1
0
        /// <summary>
        /// Creates a new unit of work instance with specified parameters.
        /// </summary>
        protected IUnitOfWork CreateCore(object parameter)
        {
            var uow = CreateUnitOfWork(parameter);

            registry.RegisterUnitOfWork(uow);
            uow.Disposing += OnUnitOfWorkDisposing;
            return(uow);
        }
        /// <summary>
        /// Creates a new unit of work instance with specified parameters.
        /// </summary>
        protected IUnitOfWork CreateCore(object parameter, DatabaseType databaseType, string connectionString)
        {
            var uow = CreateUnitOfWork(parameter, databaseType, connectionString);

            _registry.RegisterUnitOfWork(uow);
            uow.Disposing += OnUnitOfWorkDisposing;
            return(uow);
        }