/// <summary> /// Initializes a new instance of the <see cref="DbCommandWrapper"/> class. /// </summary> /// <param name="wrappedCommand">The wrapped command.</param> /// <param name="definition">The definition.</param> public DbCommandWrapper(DbCommand wrappedCommand, DbCommandDefinitionWrapper definition) { this.wrappedCommand = wrappedCommand; this.definition = definition; }
/// <summary> /// Initializes a new instance of the EFCachingCommand class. /// </summary> /// <param name="wrappedCommand">The wrapped command.</param> /// <param name="commandDefinition">The command definition.</param> public EFCachingCommand(DbCommand wrappedCommand, DbCommandDefinitionWrapper commandDefinition) : base(wrappedCommand, commandDefinition) { }
/// <summary> /// Initializes a new instance of the EFTracingCommand class. /// </summary> /// <param name="wrappedCommand">The wrapped command.</param> /// <param name="commandDefinition">The command definition.</param> public EFTracingCommand(DbCommand wrappedCommand, DbCommandDefinitionWrapper commandDefinition) : base(wrappedCommand, commandDefinition) { this.CommandID = Interlocked.Increment(ref globalCommandID); }