예제 #1
0
        protected override DbCommandDefinition CreateDbCommandDefinition(DbProviderManifest providerManifest, DbCommandTree commandTree)
        {
            DbCommand proxy = (DbCommand)this._proxy.GetType().GetMethod("CreateCommand", BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(DbProviderManifest), typeof(DbCommandTree) }, null).Invoke(this._proxy, new object[] { providerManifest, commandTree });

            proxy = new LINQPadDbCommand(proxy);
            return(this.CreateCommandDefinition(proxy));
        }
 protected override DbCommandDefinition CreateDbCommandDefinition(DbProviderManifest providerManifest, DbCommandTree commandTree)
 {
     DbCommand proxy = (DbCommand) this._proxy.GetType().GetMethod("CreateCommand", BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(DbProviderManifest), typeof(DbCommandTree) }, null).Invoke(this._proxy, new object[] { providerManifest, commandTree });
     proxy = new LINQPadDbCommand(proxy);
     return this.CreateCommandDefinition(proxy);
 }