4
Petapoco.cs의 핵심에는 OpenShareConnection 기능이 있습니다. SQL Azure의 연결 풀을 이용할 수 없다고 생각합니다. 연결을 모니터링하고 연결 수가 풀 한도를 초과합니다.Petapoco 및 Azure SQL 연결 풀
누구나 개선 된 부분이 있습니까? 여기
이 (Petapoco 오픈 소스에서)이 OpenShareConnection입니다 : 지금까지 내가 Petapoco 새로운하여 SQLConnection을 생성하지 풀링 ADO 연결 뒤에 기본 전제 싸우고 볼 수public void OpenSharedConnection()
{
if (_sharedConnectionDepth == 0)
{
//read the connection string from web.config and
//create a new connection
_sqlConnection = _factory.CreateConnection();
_sqlConnection.ConnectionString = _connectionString;
// Wrap this method with a retry policy.
_sqlConnection.Open();
_sqlConnection = OnConnectionOpened(_sqlConnection);
if (KeepConnectionAlive)
_sharedConnectionDepth++; // Make sure you call Dispose
}
_sharedConnectionDepth++;
}