Ejemplo n.º 1
0
        protected override DbCommandDefinition CreateDbCommandDefinition(DbProviderManifest providerManifest, System.Data.Common.CommandTrees.DbCommandTree commandTree)
        {
            var cmdDef = providerServices.CreateCommandDefinition(providerManifest, commandTree);
            var cmd    = cmdDef.CreateCommand();

            return(CreateCommandDefinition(new DbTracingCommand(cmd, cmd.Connection)));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// create the database command definition.
        /// </summary>
        /// <param name="providerManifest">The provider manifest.</param>
        /// <param name="commandTree">The command tree.</param>
        /// <returns>the command definition.</returns>
        protected override DbCommandDefinition CreateDbCommandDefinition(DbProviderManifest providerManifest, System.Data.Common.CommandTrees.DbCommandTree commandTree)
        {
            var cmdDef = _wrapped.CreateCommandDefinition(providerManifest, commandTree);
            var cmd    = cmdDef.CreateCommand();

            Debug.Assert(cmd != null, "cmd != null");
            return(CreateCommandDefinition(new ProfiledDbCommand(cmd, cmd.Connection, _profiler)));
        }
Ejemplo n.º 3
0
    protected override DbCommandDefinition CreateDbCommandDefinition(DbProviderManifest providerManifest, System.Data.Common.CommandTrees.DbCommandTree commandTree)
    {
        var innerRes = Inner.CreateCommandDefinition(providerManifest, commandTree);
        var res      = new TraceableCommandDefinition(this, innerRes);

        return(res);
    }