{"action":"created","issue":{"url":"https://api.github.com/repos/Windows-XAML/Template10/issues/366","labels_url":"https://api.github.com/repos/Windows-XAML/Template10/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/Windows-XAML/Template10/issues/366/comments","events_url":"https://api.github.com/repos/Windows-XAML/Template10/issues/366/events","html_url":"https://github.com/Windows-XAML/Template10/issues/366","id":119530077,"number":366,"title":"Where to place the Database Viewmodel","user":{"login":"alanb6448","id":16083975,"avatar_url":"https://avatars.githubusercontent.com/u/16083975?v=3","gravatar_id":"","url":"https://api.github.com/users/alanb6448","html_url":"https://github.com/alanb6448","followers_url":"https://api.github.com/users/alanb6448/followers","following_url":"https://api.github.com/users/alanb6448/following{/other_user}","gists_url":"https://api.github.com/users/alanb6448/gists{/gist_id}","starred_url":"https://api.github.com/users/alanb6448/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanb6448/subscriptions","organizations_url":"https://api.github.com/users/alanb6448/orgs","repos_url":"https://api.github.com/users/alanb6448/repos","events_url":"https://api.github.com/users/alanb6448/events{/privacy}","received_events_url":"https://api.github.com/users/alanb6448/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T16:39:47Z","updated_at":"2015-11-30T17:10:26Z","closed_at":null,"body":"Hi,\r\nI am just starting to use T10 and basically modifying the HamburgerMenu example. I have data stored in an sqllite database and access it through a datamanager class whoose only parameter is a connection string. Everything else is encapsulated in the class and access via properties. \r\n\r\nThe final app will have several pages each requiring access to the database. So not sure best way to do this mt thoughts are to have the database manager in Shell and pass refs to it into viewmodel associated with each page. Is there a better way of doing it?\r\n\r\nThanks\r\nAlan "},"comment":{"url":"https://api.github.com/repos/Windows-XAML/Template10/issues/comments/160692480","html_url":"https://github.com/Windows-XAML/Template10/issues/366#issuecomment-160692480","issue_url":"https://api.github.com/repos/Windows-XAML/Template10/issues/366","id":160692480,"user":{"login":"AmitBhatnagar24","id":8731921,"avatar_url":"https://avatars.githubusercontent.com/u/8731921?v=3","gravatar_id":"","url":"https://api.github.com/users/AmitBhatnagar24","html_url":"https://github.com/AmitBhatnagar24","followers_url":"https://api.github.com/users/AmitBhatnagar24/followers","following_url":"https://api.github.com/users/AmitBhatnagar24/following{/other_user}","gists_url":"https://api.github.com/users/AmitBhatnagar24/gists{/gist_id}","starred_url":"https://api.github.com/users/AmitBhatnagar24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmitBhatnagar24/subscriptions","organizations_url":"https://api.github.com/users/AmitBhatnagar24/orgs","repos_url":"https://api.github.com/users/AmitBhatnagar24/repos","events_url":"https://api.github.com/users/AmitBhatnagar24/events{/privacy}","received_events_url":"https://api.github.com/users/AmitBhatnagar24/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T17:10:26Z","updated_at":"2015-11-30T17:10:26Z","body":"Might want to think about your architecture here.\r\n\r\nA common approach is to use a Dependency Injection framework, (such as Microsoft's Unity, or SimpleIOC that comes with MVVMLight, and there are many others). You would inject a your \"data access service\" in the view models that require them.\r\n\r\n"}}