{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/5156","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/5156/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/5156/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/5156/events","html_url":"https://github.com/aspnet/EntityFramework/issues/5156","id":150483218,"number":5156,"title":"Commands: cannot identify all context from service container","user":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/investigation-needed","name":"investigation-needed","color":"0052cc"},{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/pri0","name":"pri0","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/18","html_url":"https://github.com/aspnet/EntityFramework/milestones/1.0.0-rc2","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/18/labels","id":1403248,"number":18,"title":"1.0.0-rc2","description":null,"creator":{"login":"bricelam","id":1226749,"avatar_url":"https://avatars.githubusercontent.com/u/1226749?v=3","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":273,"state":"open","created_at":"2015-11-09T22:23:36Z","updated_at":"2016-04-26T21:47:15Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-04-22T22:12:23Z","updated_at":"2016-04-26T21:47:15Z","closed_at":"2016-04-26T21:47:15Z","body":"At design-time, we relied on the presence of `DbContextOptions` to figure our which types of context have been added in startup via `AddDbContext<T>()`. With recent changes, this means only one type of DbContextOptions is ever present.\r\n\r\n## Repro\r\n```\r\nserviceCollection\r\n    .AddEntityFrameworkSqlite()\r\n    .AddDbContext<Context1>(getOptions1)\r\n    .AddDbContext<Context2>(getOptions2);\r\n```\r\nThen make a call to DbContextOperations.GetContextTypes();\r\n## Expected\r\nDbContextOperations.GetContextTypes() should return Context1 and Context2\r\n\r\n## Actual\r\nDbContextOperations.GetContextTypes() only returns Context1"}}