{"action":"opened","number":349,"pull_request":{"url":"https://api.github.com/repos/DbLinq/dblinq2007/pulls/349","id":75077589,"html_url":"https://github.com/DbLinq/dblinq2007/pull/349","diff_url":"https://github.com/DbLinq/dblinq2007/pull/349.diff","patch_url":"https://github.com/DbLinq/dblinq2007/pull/349.patch","issue_url":"https://api.github.com/repos/DbLinq/dblinq2007/issues/349","number":349,"state":"open","locked":false,"title":"Added: connection disposing for connection-string based context.","user":{"login":"alexeyfadeev","id":11972666,"avatar_url":"https://avatars.githubusercontent.com/u/11972666?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyfadeev","html_url":"https://github.com/alexeyfadeev","followers_url":"https://api.github.com/users/alexeyfadeev/followers","following_url":"https://api.github.com/users/alexeyfadeev/following{/other_user}","gists_url":"https://api.github.com/users/alexeyfadeev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyfadeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyfadeev/subscriptions","organizations_url":"https://api.github.com/users/alexeyfadeev/orgs","repos_url":"https://api.github.com/users/alexeyfadeev/repos","events_url":"https://api.github.com/users/alexeyfadeev/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyfadeev/received_events","type":"User","site_admin":false},"body":"There is a two ways of DataContext creation: by IDbConnection and by connection string. In the second case, IDbConnection is created inside DataContext. I think, it should be disposed on DataContext disposing, otherwise connection is stays on; connection pool can't use it over and has to create a new one with next DataContext creation. I discovered it when I saw huge amounts of \"postgres\" porocesses (PostgreSQL creates a new process on each connection).\r\n\r\nI added shouldConnectionBeDisposed property (for DataContext created by connection string). If it's set to TRUE, connection is disposed on DataContext disposing.\r\nIt solved problem with large amounts \"postgres\" porocesses.","created_at":"2016-06-24T08:00:40Z","updated_at":"2016-06-24T08:00:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DbLinq/dblinq2007/pulls/349/commits","review_comments_url":"https://api.github.com/repos/DbLinq/dblinq2007/pulls/349/comments","review_comment_url":"https://api.github.com/repos/DbLinq/dblinq2007/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DbLinq/dblinq2007/issues/349/comments","statuses_url":"https://api.github.com/repos/DbLinq/dblinq2007/statuses/0681a5596e5e6ae5c3ec2973c0629b6b45767a24","head":{"label":"alexeyfadeev:dev","ref":"dev","sha":"0681a5596e5e6ae5c3ec2973c0629b6b45767a24","user":{"login":"alexeyfadeev","id":11972666,"avatar_url":"https://avatars.githubusercontent.com/u/11972666?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyfadeev","html_url":"https://github.com/alexeyfadeev","followers_url":"https://api.github.com/users/alexeyfadeev/followers","following_url":"https://api.github.com/users/alexeyfadeev/following{/other_user}","gists_url":"https://api.github.com/users/alexeyfadeev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyfadeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyfadeev/subscriptions","organizations_url":"https://api.github.com/users/alexeyfadeev/orgs","repos_url":"https://api.github.com/users/alexeyfadeev/repos","events_url":"https://api.github.com/users/alexeyfadeev/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyfadeev/received_events","type":"User","site_admin":false},"repo":{"id":36921504,"name":"dblinq2007","full_name":"alexeyfadeev/dblinq2007","owner":{"login":"alexeyfadeev","id":11972666,"avatar_url":"https://avatars.githubusercontent.com/u/11972666?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyfadeev","html_url":"https://github.com/alexeyfadeev","followers_url":"https://api.github.com/users/alexeyfadeev/followers","following_url":"https://api.github.com/users/alexeyfadeev/following{/other_user}","gists_url":"https://api.github.com/users/alexeyfadeev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyfadeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyfadeev/subscriptions","organizations_url":"https://api.github.com/users/alexeyfadeev/orgs","repos_url":"https://api.github.com/users/alexeyfadeev/repos","events_url":"https://api.github.com/users/alexeyfadeev/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyfadeev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexeyfadeev/dblinq2007","description":"LINQ provider for Oracle, PostgreSQL, MySQL, Ingres, SQLite, Firebird and ... SQL Server","fork":true,"url":"https://api.github.com/repos/alexeyfadeev/dblinq2007","forks_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/forks","keys_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/teams","hooks_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/hooks","issue_events_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/issues/events{/number}","events_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/events","assignees_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/assignees{/user}","branches_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/branches{/branch}","tags_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/tags","blobs_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/statuses/{sha}","languages_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/languages","stargazers_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/stargazers","contributors_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/contributors","subscribers_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/subscribers","subscription_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/subscription","commits_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/contents/{+path}","compare_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/merges","archive_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/downloads","issues_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/issues{/number}","pulls_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/pulls{/number}","milestones_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/milestones{/number}","notifications_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/labels{/name}","releases_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/releases{/id}","deployments_url":"https://api.github.com/repos/alexeyfadeev/dblinq2007/deployments","created_at":"2015-06-05T08:30:50Z","updated_at":"2016-05-31T07:27:44Z","pushed_at":"2016-06-24T07:46:43Z","git_url":"git://github.com/alexeyfadeev/dblinq2007.git","ssh_url":"git@github.com:alexeyfadeev/dblinq2007.git","clone_url":"https://github.com/alexeyfadeev/dblinq2007.git","svn_url":"https://github.com/alexeyfadeev/dblinq2007","homepage":"","size":8574,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DbLinq:master","ref":"master","sha":"a589fcb2a781b29df1170a77435b1fbe6a01ca85","user":{"login":"DbLinq","id":12096386,"avatar_url":"https://avatars.githubusercontent.com/u/12096386?v=3","gravatar_id":"","url":"https://api.github.com/users/DbLinq","html_url":"https://github.com/DbLinq","followers_url":"https://api.github.com/users/DbLinq/followers","following_url":"https://api.github.com/users/DbLinq/following{/other_user}","gists_url":"https://api.github.com/users/DbLinq/gists{/gist_id}","starred_url":"https://api.github.com/users/DbLinq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DbLinq/subscriptions","organizations_url":"https://api.github.com/users/DbLinq/orgs","repos_url":"https://api.github.com/users/DbLinq/repos","events_url":"https://api.github.com/users/DbLinq/events{/privacy}","received_events_url":"https://api.github.com/users/DbLinq/received_events","type":"Organization","site_admin":false},"repo":{"id":34506704,"name":"dblinq2007","full_name":"DbLinq/dblinq2007","owner":{"login":"DbLinq","id":12096386,"avatar_url":"https://avatars.githubusercontent.com/u/12096386?v=3","gravatar_id":"","url":"https://api.github.com/users/DbLinq","html_url":"https://github.com/DbLinq","followers_url":"https://api.github.com/users/DbLinq/followers","following_url":"https://api.github.com/users/DbLinq/following{/other_user}","gists_url":"https://api.github.com/users/DbLinq/gists{/gist_id}","starred_url":"https://api.github.com/users/DbLinq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DbLinq/subscriptions","organizations_url":"https://api.github.com/users/DbLinq/orgs","repos_url":"https://api.github.com/users/DbLinq/repos","events_url":"https://api.github.com/users/DbLinq/events{/privacy}","received_events_url":"https://api.github.com/users/DbLinq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DbLinq/dblinq2007","description":"LINQ provider for Oracle, PostgreSQL, MySQL, Ingres, SQLite, Firebird and ... SQL Server","fork":false,"url":"https://api.github.com/repos/DbLinq/dblinq2007","forks_url":"https://api.github.com/repos/DbLinq/dblinq2007/forks","keys_url":"https://api.github.com/repos/DbLinq/dblinq2007/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DbLinq/dblinq2007/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DbLinq/dblinq2007/teams","hooks_url":"https://api.github.com/repos/DbLinq/dblinq2007/hooks","issue_events_url":"https://api.github.com/repos/DbLinq/dblinq2007/issues/events{/number}","events_url":"https://api.github.com/repos/DbLinq/dblinq2007/events","assignees_url":"https://api.github.com/repos/DbLinq/dblinq2007/assignees{/user}","branches_url":"https://api.github.com/repos/DbLinq/dblinq2007/branches{/branch}","tags_url":"https://api.github.com/repos/DbLinq/dblinq2007/tags","blobs_url":"https://api.github.com/repos/DbLinq/dblinq2007/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DbLinq/dblinq2007/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DbLinq/dblinq2007/git/refs{/sha}","trees_url":"https://api.github.com/repos/DbLinq/dblinq2007/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DbLinq/dblinq2007/statuses/{sha}","languages_url":"https://api.github.com/repos/DbLinq/dblinq2007/languages","stargazers_url":"https://api.github.com/repos/DbLinq/dblinq2007/stargazers","contributors_url":"https://api.github.com/repos/DbLinq/dblinq2007/contributors","subscribers_url":"https://api.github.com/repos/DbLinq/dblinq2007/subscribers","subscription_url":"https://api.github.com/repos/DbLinq/dblinq2007/subscription","commits_url":"https://api.github.com/repos/DbLinq/dblinq2007/commits{/sha}","git_commits_url":"https://api.github.com/repos/DbLinq/dblinq2007/git/commits{/sha}","comments_url":"https://api.github.com/repos/DbLinq/dblinq2007/comments{/number}","issue_comment_url":"https://api.github.com/repos/DbLinq/dblinq2007/issues/comments{/number}","contents_url":"https://api.github.com/repos/DbLinq/dblinq2007/contents/{+path}","compare_url":"https://api.github.com/repos/DbLinq/dblinq2007/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DbLinq/dblinq2007/merges","archive_url":"https://api.github.com/repos/DbLinq/dblinq2007/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DbLinq/dblinq2007/downloads","issues_url":"https://api.github.com/repos/DbLinq/dblinq2007/issues{/number}","pulls_url":"https://api.github.com/repos/DbLinq/dblinq2007/pulls{/number}","milestones_url":"https://api.github.com/repos/DbLinq/dblinq2007/milestones{/number}","notifications_url":"https://api.github.com/repos/DbLinq/dblinq2007/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DbLinq/dblinq2007/labels{/name}","releases_url":"https://api.github.com/repos/DbLinq/dblinq2007/releases{/id}","deployments_url":"https://api.github.com/repos/DbLinq/dblinq2007/deployments","created_at":"2015-04-24T08:20:07Z","updated_at":"2016-06-06T20:43:48Z","pushed_at":"2016-06-24T08:00:40Z","git_url":"git://github.com/DbLinq/dblinq2007.git","ssh_url":"git@github.com:DbLinq/dblinq2007.git","clone_url":"https://github.com/DbLinq/dblinq2007.git","svn_url":"https://github.com/DbLinq/dblinq2007","homepage":"","size":11508,"stargazers_count":19,"watchers_count":19,"language":"C#","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":147,"forks":9,"open_issues":147,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DbLinq/dblinq2007/pulls/349"},"html":{"href":"https://github.com/DbLinq/dblinq2007/pull/349"},"issue":{"href":"https://api.github.com/repos/DbLinq/dblinq2007/issues/349"},"comments":{"href":"https://api.github.com/repos/DbLinq/dblinq2007/issues/349/comments"},"review_comments":{"href":"https://api.github.com/repos/DbLinq/dblinq2007/pulls/349/comments"},"review_comment":{"href":"https://api.github.com/repos/DbLinq/dblinq2007/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DbLinq/dblinq2007/pulls/349/commits"},"statuses":{"href":"https://api.github.com/repos/DbLinq/dblinq2007/statuses/0681a5596e5e6ae5c3ec2973c0629b6b45767a24"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"alexeyfadeev"}}