Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DbCommandProxy"/> class.
        /// </summary>
        public DbCommandProxy(DbCommand command, DbCommandInfo info)
        {
            Debug.Assert(command != null);
            Debug.Assert(info != null);

            _command     = command;
            _commandInfo = info;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DbCommandDefinitionProxy"/> class.
        /// </summary>
        public DbCommandDefinitionProxy(DbCommandDefinition definition, DbCommandInfo info)
        {
            Debug.Assert(definition != null);

            var proxy = definition as DbCommandDefinitionProxy;
            _definition = proxy != null ? proxy._definition : definition;

            _info = info;
        }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DbCommandDefinitionProxy"/> class.
        /// </summary>
        public DbCommandDefinitionProxy(DbCommandDefinition definition, DbCommandInfo info)
        {
            Debug.Assert(definition != null);

            var proxy = definition as DbCommandDefinitionProxy;

            _definition = proxy != null ? proxy._definition : definition;

            _info = info;
        }