{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6963","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6963/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6963/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6963/events","html_url":"https://github.com/aspnet/EntityFramework/issues/6963","id":187811809,"number":6963,"title":"Usability: AddDbContext with options lambda when context has no options ctor","user":{"login":"anpete","id":1210944,"avatar_url":"https://avatars.githubusercontent.com/u/1210944?v=3","gravatar_id":"","url":"https://api.github.com/users/anpete","html_url":"https://github.com/anpete","followers_url":"https://api.github.com/users/anpete/followers","following_url":"https://api.github.com/users/anpete/following{/other_user}","gists_url":"https://api.github.com/users/anpete/gists{/gist_id}","starred_url":"https://api.github.com/users/anpete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anpete/subscriptions","organizations_url":"https://api.github.com/users/anpete/orgs","repos_url":"https://api.github.com/users/anpete/repos","events_url":"https://api.github.com/users/anpete/events{/privacy}","received_events_url":"https://api.github.com/users/anpete/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-07T19:58:53Z","updated_at":"2016-11-07T20:05:36Z","closed_at":null,"body":"Right now we seem to silently ignore the options lambda. This bug is about whether we should throw or warn."},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/258947056","html_url":"https://github.com/aspnet/EntityFramework/issues/6963#issuecomment-258947056","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6963","id":258947056,"user":{"login":"ajcvickers","id":1430078,"avatar_url":"https://avatars.githubusercontent.com/u/1430078?v=3","gravatar_id":"","url":"https://api.github.com/users/ajcvickers","html_url":"https://github.com/ajcvickers","followers_url":"https://api.github.com/users/ajcvickers/followers","following_url":"https://api.github.com/users/ajcvickers/following{/other_user}","gists_url":"https://api.github.com/users/ajcvickers/gists{/gist_id}","starred_url":"https://api.github.com/users/ajcvickers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajcvickers/subscriptions","organizations_url":"https://api.github.com/users/ajcvickers/orgs","repos_url":"https://api.github.com/users/ajcvickers/repos","events_url":"https://api.github.com/users/ajcvickers/events{/privacy}","received_events_url":"https://api.github.com/users/ajcvickers/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T20:05:36Z","updated_at":"2016-11-07T20:05:36Z","body":"We discussed this in the past and decided against it because we would have to replicate the logic in D.I. to determine if a constructor that takes the options would be used.\r\n\r\nEven if we did that, we don't know that the context is not depending on something else that it gets the options from. Could be using service locator, or just have another service that depends on the options.\r\n\r\nSo to be sure we are not throwing for correct code we basically have to replicate a lot of the D,I, resolution (or somehow use D.I. to do it without actually resolving). \r\n\r\nOr we can be okay with throwing when there is no actual issue. We decided against this when we discussed this before."}}
{"actor":{"display_login":"ajcvickers"}}