/// <summary> /// 创建驱动的连接 /// </summary> /// <returns></returns> private IDbConnection NewConnection() { long start = DateTime.Now.Ticks; IDbConnection connection = null; try { if (string.IsNullOrEmpty(dllPath)) { dllPath = Path.Combine(config.DriverDir, config.DriverDLL); } connection = ProxyLoad.GetConnection(dllPath); if (connection == null) { throw new Exception("DataSource returned null unexpectedly"); } SetupConnection(connection); return(connection); } catch (Exception e) { throw e; } finally { } }
public IDbDataParameter GetDataParameter() { return(ProxyLoad.GetDataParameter(dllPath)); }
public IDbDataAdapter GetDataAdapter() { return(ProxyLoad.GetDataAdapter(dllPath)); }
public IDbCommand GetDbCommand() { return(ProxyLoad.GetDbCommand(dllPath)); }