예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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)
 {
 }
예제 #4
0
 /// <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);
 }