예제 #1
0
        protected AdoContext(IAdoDbFactory adoDbFactory, Action <AdoContext> rolledBack = null, Action <AdoContext> committed = null)
        {
            _adoDbFactory = adoDbFactory;
            _rolledBack   = rolledBack;
            _committed    = committed;

            _connection          = adoDbFactory.CreateConnection();
            _transaction         = _connection.BeginTransaction();
            _repositoryContainer = new Dictionary <Type, Type>();
        }
예제 #2
0
 public TestAdoContext(IAdoDbFactory adoDbFactory, Action <AdoContext> rolledBack = null, Action <AdoContext> committed = null)
     : base(adoDbFactory, rolledBack, committed)
 {
     RegisterRepositories();
 }