Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RequestScope"/> class.
        /// </summary>
        /// <param name="dataExchangeFactory">The data exchange factory.</param>
        /// <param name="session">The session.</param>
        /// <param name="statement">The statement</param>
        public RequestScope(
            DataExchangeFactory dataExchangeFactory,
            ISqlMapSession session,
            IStatement statement
            )
        {
            _errorContext = new ErrorContext();

            _statement = statement;
            _parameterMap = statement.ParameterMap;
            _session = session;
            _dataExchangeFactory = dataExchangeFactory;
            _id = GetNextId();
        }
        /// <summary>
        /// Default constructor
        /// </summary>
        public ConfigurationScope()
        {
            _errorContext = new ErrorContext();

            _providers.Clear();
        }
        /// <summary>
        /// Default constructor
        /// </summary>
        public ConfigurationScope()
        {
            _errorContext = new ErrorContext();

            _providers.Clear();
        }