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