public override IDbCommand CreateCommand() { IDbCommand command = base.CreateCommand(); if (MiniProfiler.Current != null) { command = DbCommandProxy.CreateProxy(command); } return(command); }
public static IDbCommand CreateProxy(IDbCommand instance) { var proxy = new DbCommandProxy(instance as DbCommand); return proxy.GetTransparentProxy() as IDbCommand; }
public static IDbCommand CreateProxy(IDbCommand instance) { var proxy = new DbCommandProxy(instance as DbCommand); return(proxy.GetTransparentProxy() as IDbCommand); }