{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/FSharp.Configuration/issues/99","repository_url":"https://api.github.com/repos/fsprojects/FSharp.Configuration","labels_url":"https://api.github.com/repos/fsprojects/FSharp.Configuration/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/FSharp.Configuration/issues/99/comments","events_url":"https://api.github.com/repos/fsprojects/FSharp.Configuration/issues/99/events","html_url":"https://github.com/fsprojects/FSharp.Configuration/issues/99","id":156216423,"number":99,"title":"Required documentation for using yaml typeprovider to set up the SQLProvider in production","user":{"login":"tforkmann","id":4168951,"avatar_url":"https://avatars.githubusercontent.com/u/4168951?v=3","gravatar_id":"","url":"https://api.github.com/users/tforkmann","html_url":"https://github.com/tforkmann","followers_url":"https://api.github.com/users/tforkmann/followers","following_url":"https://api.github.com/users/tforkmann/following{/other_user}","gists_url":"https://api.github.com/users/tforkmann/gists{/gist_id}","starred_url":"https://api.github.com/users/tforkmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tforkmann/subscriptions","organizations_url":"https://api.github.com/users/tforkmann/orgs","repos_url":"https://api.github.com/users/tforkmann/repos","events_url":"https://api.github.com/users/tforkmann/events{/privacy}","received_events_url":"https://api.github.com/users/tforkmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-23T07:32:10Z","updated_at":"2016-05-23T07:53:17Z","closed_at":null,"body":"### Description\r\n\r\nRequired documentation for using yaml typeprovider to set up the SQLProvider in production.\r\n\r\n### Repro steps\r\n\r\n1 Create Config.yaml file like this:\r\n\r\n```yaml\r\nDB:\r\n    ConnectionString: Data Source=....\r\n```\r\n2 Set up the Yaml Type Provider\r\n\r\n```fsharp\r\ntype Config = YamlConfig<\".\\config.yaml\"> \r\nlet config = Config ()\r\nlet connectionString = config.DB.ConnectionString\r\n```\r\n\r\n3 Set up Sql Provider and use the ConnectionString \r\n\r\n```fsharp\r\nlet [<Literal>] CompileTimeConnectionString = \"Data Source=...\"\r\ntype Sql = SqlDataProvider<ConnectionString = CompileTimeConnectionString, UseOptionTypes=true>\r\nlet db = Sql.GetDataContext connectionString\r\n```\r\n\r\n### Expected behavior\r\n\r\nThe Yaml typeprovider should provide the connection string for the Sqlprovider which is then connecting to the db.\r\n\r\n### Actual behavior\r\n\r\nThe Yaml typeprovider provides the connection string for the Sqlprovider which is then connecting to the db.\r\n\r\n### Known workarounds\r\n\r\nNone known\r\n\r\n### Related information \r\n\r\n* Operating system: Win 7\r\n* Database versions: SQL Server 2008\r\n* using Visual Studio 2015\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fsprojects/FSharp.Configuration/issues/comments/220910641","html_url":"https://github.com/fsprojects/FSharp.Configuration/issues/99#issuecomment-220910641","issue_url":"https://api.github.com/repos/fsprojects/FSharp.Configuration/issues/99","id":220910641,"user":{"login":"forki","id":57396,"avatar_url":"https://avatars.githubusercontent.com/u/57396?v=3","gravatar_id":"","url":"https://api.github.com/users/forki","html_url":"https://github.com/forki","followers_url":"https://api.github.com/users/forki/followers","following_url":"https://api.github.com/users/forki/following{/other_user}","gists_url":"https://api.github.com/users/forki/gists{/gist_id}","starred_url":"https://api.github.com/users/forki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forki/subscriptions","organizations_url":"https://api.github.com/users/forki/orgs","repos_url":"https://api.github.com/users/forki/repos","events_url":"https://api.github.com/users/forki/events{/privacy}","received_events_url":"https://api.github.com/users/forki/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T07:53:17Z","updated_at":"2016-05-23T07:53:17Z","body":"But I think it should go to SQLProvider\nOn May 23, 2016 9:52 AM, \"Steffen Forkmann\" <sforkmann@gmail.com> wrote:\n\n> This is a reminder. Tim wants to write a tutorial on how to use\n> yamlprovider together with SQLProvider.\n> On May 23, 2016 9:50 AM, \"Vasily Kirichenko\" <notifications@github.com>\n> wrote:\n>\n>> I'm not sure I understand what you'd like to have here. And please, do\n>> not use the issue template, I don't find it any useful, it just adds noise.\n>>\n>> —\n>> You are receiving this because you are subscribed to this thread.\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/fsprojects/FSharp.Configuration/issues/99#issuecomment-220910187>\n>>\n>\n"}}
{"actor":{"display_login":"forki"}}