예제 #1
0
        public WrapDbConnection(DbConnection inner, IServiceProvider serviceProvider,
                                Action <IDbCommand, Type, IServiceProvider> onCommand, Type type)
        {
            Inner = inner;

            _maybeRetains    = Inner.ActLike(typeof(IRetainLastInsertedId));
            _serviceProvider = serviceProvider;
            _onCommand       = onCommand;
            _type            = type;
        }