{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/384","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/384/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/384/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/384","id":60189181,"number":384,"title":"How do I register SettingManager to pull various Settings from AbpSettings table?","user":{"login":"langman66","id":3853763,"avatar_url":"https://avatars.githubusercontent.com/u/3853763?v=3","gravatar_id":"","url":"https://api.github.com/users/langman66","html_url":"https://github.com/langman66","followers_url":"https://api.github.com/users/langman66/followers","following_url":"https://api.github.com/users/langman66/following{/other_user}","gists_url":"https://api.github.com/users/langman66/gists{/gist_id}","starred_url":"https://api.github.com/users/langman66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/langman66/subscriptions","organizations_url":"https://api.github.com/users/langman66/orgs","repos_url":"https://api.github.com/users/langman66/repos","events_url":"https://api.github.com/users/langman66/events{/privacy}","received_events_url":"https://api.github.com/users/langman66/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-07T03:59:03Z","updated_at":"2015-03-08T20:48:53Z","closed_at":"2015-03-08T20:48:53Z","body":"I can't seem to figure out how to properly register the SettingManager to pull values stored in the AbpSettings table.\r\n\r\nMy project is using Abp and Zero module.\r\n\r\nI see this Test class in \\Abp\\aspnetboilerplate\\src\\Tests\\Abp.Tests\\Configuration\\SettingManager_Tests.cs but I can't determine how I get the framework to know that i want to pull the settings from the database.\r\n\r\nI see the Abp.Zero.Configuration has SettingStore.cs and Setting.cs.\r\n\r\nIn my MVC AccountController, I'm asking the base SettingManager for various settings using the syntax below.\r\n\r\n                        var defaultLanguageId = SettingManager.GetSettingValue(\"DefaultLanguageId\");\r\n\r\n                        var userSpecificSettings = SettingManager.GetAllSettingValuesForUserAsync(user.Id);\r\n\r\n\r\n                        var tenant1Settings = SettingManager.GetAllSettingValuesForTenant(1);\r\n\r\n                        if (tenant1Settings != null && tenant1Settings.Count > 0)\r\n                        {\r\n                            foreach (var tenant1Setting in tenant1Settings)\r\n                            {\r\n                                Console.WriteLine(\"tenant1 setting:  \" + tenant1Setting.Name + tenant1Setting.Value);\r\n                            }\r\n                        }\r\n\r\nSurely the issue is that I have not properly registered the SettingManager and the DI framework is not giving me the proper values.\r\n\r\n\r\nThanks for any guidance.\r\n\r\nChris\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/77773271","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/384#issuecomment-77773271","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/384","id":77773271,"user":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T20:48:53Z","updated_at":"2015-03-08T20:48:53Z","body":"Answered here: https://github.com/aspnetboilerplate/module-zero/issues/43"}}