{"action":"closed","issue":{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/184","repository_url":"https://api.github.com/repos/simpleinjector/SimpleInjector","labels_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/184/comments","events_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/184/events","html_url":"https://github.com/simpleinjector/SimpleInjector/issues/184","id":132495783,"number":184,"title":"Q: What is the best practice to inject connection string","user":{"login":"YehudahA","id":12732432,"avatar_url":"https://avatars.githubusercontent.com/u/12732432?v=3","gravatar_id":"","url":"https://api.github.com/users/YehudahA","html_url":"https://github.com/YehudahA","followers_url":"https://api.github.com/users/YehudahA/followers","following_url":"https://api.github.com/users/YehudahA/following{/other_user}","gists_url":"https://api.github.com/users/YehudahA/gists{/gist_id}","starred_url":"https://api.github.com/users/YehudahA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YehudahA/subscriptions","organizations_url":"https://api.github.com/users/YehudahA/orgs","repos_url":"https://api.github.com/users/YehudahA/repos","events_url":"https://api.github.com/users/YehudahA/events{/privacy}","received_events_url":"https://api.github.com/users/YehudahA/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-09T18:33:55Z","updated_at":"2016-03-15T16:15:25Z","closed_at":"2016-03-15T16:15:25Z","body":"Common use with data context [like EF] is with injection the connection string.\r\nOr if I use WebApi/Wcf clients and I want inject the url string into it.\r\n\r\nWhat is the best practice to do it using SimpleInjector?\r\n\r\nA similar question is In EF Core which uses DbContextOptions injection.\r\nThanks."}}