Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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)
 {
 }
Esempio n. 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);
 }