{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/170","labels_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/170/comments","events_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/170/events","html_url":"https://github.com/fsprojects/SQLProvider/issues/170","id":117720243,"number":170,"title":"This control construct may only be used if the computation expression builder defines a 'For' method","user":{"login":"jamessdixon","id":1394644,"avatar_url":"https://avatars.githubusercontent.com/u/1394644?v=3","gravatar_id":"","url":"https://api.github.com/users/jamessdixon","html_url":"https://github.com/jamessdixon","followers_url":"https://api.github.com/users/jamessdixon/followers","following_url":"https://api.github.com/users/jamessdixon/following{/other_user}","gists_url":"https://api.github.com/users/jamessdixon/gists{/gist_id}","starred_url":"https://api.github.com/users/jamessdixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamessdixon/subscriptions","organizations_url":"https://api.github.com/users/jamessdixon/orgs","repos_url":"https://api.github.com/users/jamessdixon/repos","events_url":"https://api.github.com/users/jamessdixon/events{/privacy}","received_events_url":"https://api.github.com/users/jamessdixon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-11-19T01:29:10Z","updated_at":"2015-11-19T13:51:08Z","closed_at":null,"body":"I am attempting to use the Sql Provider against the Adventure Works database.  I can connect and the types are getting defined correctly.  When I attempt to create this computational expression\r\n\r\n#r \"../packages/SQLProvider.0.0.9-alpha/lib/net40/FSharp.Data.SQLProvider.dll\"\r\nopen FSharp.Data.Sql\r\n\r\ntype AdventureWorks = SqlDataProvider<connectionString>\r\nlet context = AdventureWorks.GetDataContext()\r\n\r\nlet salesOrderQuery = query { for soh in context.``[Sales].[SalesOrderHeader]`` do\r\n                              select soh} |> Seq.toArray\r\n\r\n\r\nI get this exception\r\nThis control construct may only be used if the computation expression builder defines a 'For' method\r\n\r\nCan you give me a suggestion on how to fix?  Thanks\r\n"},"comment":{"url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/comments/158061590","html_url":"https://github.com/fsprojects/SQLProvider/issues/170#issuecomment-158061590","issue_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/170","id":158061590,"user":{"login":"jamessdixon","id":1394644,"avatar_url":"https://avatars.githubusercontent.com/u/1394644?v=3","gravatar_id":"","url":"https://api.github.com/users/jamessdixon","html_url":"https://github.com/jamessdixon","followers_url":"https://api.github.com/users/jamessdixon/followers","following_url":"https://api.github.com/users/jamessdixon/following{/other_user}","gists_url":"https://api.github.com/users/jamessdixon/gists{/gist_id}","starred_url":"https://api.github.com/users/jamessdixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamessdixon/subscriptions","organizations_url":"https://api.github.com/users/jamessdixon/orgs","repos_url":"https://api.github.com/users/jamessdixon/repos","events_url":"https://api.github.com/users/jamessdixon/events{/privacy}","received_events_url":"https://api.github.com/users/jamessdixon/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T13:51:08Z","updated_at":"2015-11-19T13:51:08Z","body":"\n\n \n\n \n\nFrom: Ross McKinlay [mailto:notifications@github.com] \nSent: Thursday, November 19, 2015 8:46 AM\nTo: fsprojects/SQLProvider <SQLProvider@noreply.github.com>\nCc: Jamie Dixon <jamessdixon@gmail.com>\nSubject: Re: [SQLProvider] This control construct may only be used if the computation expression builder defines a 'For' method (#170)\n\n \n\nis that deffo the dev-v1 branch? not just the latest of master? you want this one \n\nhttps://github.com/fsprojects/SQLProvider/tree/Development_V1\n\nI think you might be using the wrong one as the static parameters are in a different order now and I believe master still has the ALL CAPS!\n\n—\nReply to this email directly or view it on GitHub <https://github.com/fsprojects/SQLProvider/issues/170#issuecomment-158060475> .  <https://github.com/notifications/beacon/ABVH1KZDUvu451gSnIr7AixDXO-FAliQks5pHcougaJpZM4GlM3h.gif> \n\n"}}