{"action":"created","issue":{"url":"https://api.github.com/repos/brockallen/BrockAllen.MembershipReboot/issues/448","repository_url":"https://api.github.com/repos/brockallen/BrockAllen.MembershipReboot","labels_url":"https://api.github.com/repos/brockallen/BrockAllen.MembershipReboot/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/brockallen/BrockAllen.MembershipReboot/issues/448/comments","events_url":"https://api.github.com/repos/brockallen/BrockAllen.MembershipReboot/issues/448/events","html_url":"https://github.com/brockallen/BrockAllen.MembershipReboot/issues/448","id":46274998,"number":448,"title":"Problem with connection string name (nuget package)","user":{"login":"Topkapi","id":2488876,"avatar_url":"https://avatars.githubusercontent.com/u/2488876?v=3","gravatar_id":"","url":"https://api.github.com/users/Topkapi","html_url":"https://github.com/Topkapi","followers_url":"https://api.github.com/users/Topkapi/followers","following_url":"https://api.github.com/users/Topkapi/following{/other_user}","gists_url":"https://api.github.com/users/Topkapi/gists{/gist_id}","starred_url":"https://api.github.com/users/Topkapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Topkapi/subscriptions","organizations_url":"https://api.github.com/users/Topkapi/orgs","repos_url":"https://api.github.com/users/Topkapi/repos","events_url":"https://api.github.com/users/Topkapi/events{/privacy}","received_events_url":"https://api.github.com/users/Topkapi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brockallen/BrockAllen.MembershipReboot/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2014-10-20T13:53:51Z","updated_at":"2016-05-30T14:52:08Z","closed_at":null,"body":"First of all I must say that I am loving this library. This is a very well thought out membership system.\r\nI have, however, found a couple of issues.\r\n\r\nWhen using the MR EF nuget package and instantiating DefaultUserAccountRepository with my own connection string, it does not respect it. It creates a MembershipReboot database no matter what is specified for the name. I investigated it and the problem is not there with the code in the GitHub repo. \r\n\r\nIn the nuget package, the problem seems to be in the constructor of DefaultMembershipRebootDatabase class. The constructor with connection string does nothing where it should pass it along to the base class.\r\n\r\nAnother issue I found was that if we specify a schema name, for example, by writing something like new DefaultUserAccountRepository(\"connString\", \"SchemaName\"), it creates all the MR table twice, once in the dbo schema and once in the schema that has been mentioned.\r\n\r\nMy advanced apologies if the errors are of my own doing. In that case, please let me know how to configure it properly.\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/brockallen/BrockAllen.MembershipReboot/issues/comments/222508579","html_url":"https://github.com/brockallen/BrockAllen.MembershipReboot/issues/448#issuecomment-222508579","issue_url":"https://api.github.com/repos/brockallen/BrockAllen.MembershipReboot/issues/448","id":222508579,"user":{"login":"claq2","id":1678300,"avatar_url":"https://avatars.githubusercontent.com/u/1678300?v=3","gravatar_id":"","url":"https://api.github.com/users/claq2","html_url":"https://github.com/claq2","followers_url":"https://api.github.com/users/claq2/followers","following_url":"https://api.github.com/users/claq2/following{/other_user}","gists_url":"https://api.github.com/users/claq2/gists{/gist_id}","starred_url":"https://api.github.com/users/claq2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claq2/subscriptions","organizations_url":"https://api.github.com/users/claq2/orgs","repos_url":"https://api.github.com/users/claq2/repos","events_url":"https://api.github.com/users/claq2/events{/privacy}","received_events_url":"https://api.github.com/users/claq2/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T14:52:08Z","updated_at":"2016-05-30T14:52:08Z","body":"I think using the MigrateDatabaseToLatestVersion creator overload that takes a connection string name will fix the issue. E.g. \r\n\r\n    Database.SetInitializer(new MigrateDatabaseToLatestVersion<DefaultMembershipRebootDatabase, BrockAllen.MembershipReboot.Ef.Migrations.Configuration>(\"myConnName\"));"}}
{"actor":{"display_login":"claq2"}}