/// <summary> /// SQL客户端操作 /// </summary> /// <param name="connection">SQL连接信息</param> protected Client(Connection connection) { Connection = connection; ConnectionPool = ConnectionPool.Get(connection.Attribute.ClientType, connection.ConnectionString, connection.IsPool); }
/// <summary> /// 获取连接池标识 /// </summary> /// <param name="connectionPool"></param> /// <returns></returns> private static Key getPoolKey(ConnectionPool connectionPool) { return(connectionPool.poolKey); }