示例#1
0
        public UnitOfWork(IServiceProvider serviceProvider, IOptions <UnitOfWorkDefaultOptions> options)
        {
            ServiceProvider = serviceProvider;
            _defaultOptions = options.Value;

            _databaseApis    = new Dictionary <string, IDatabaseApi>();
            _transactionApis = new Dictionary <string, ITransactionApi>();
        }
示例#2
0
 public UnitOfWorkInterceptor(IUnitOfWorkManager unitOfWorkManager, IOptions <UnitOfWorkDefaultOptions> options)
 {
     _unitOfWorkManager = unitOfWorkManager;
     _defaultOptions    = options.Value;
 }