{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/FSharp.Data.SqlClient/issues/108","labels_url":"https://api.github.com/repos/fsprojects/FSharp.Data.SqlClient/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/FSharp.Data.SqlClient/issues/108/comments","events_url":"https://api.github.com/repos/fsprojects/FSharp.Data.SqlClient/issues/108/events","html_url":"https://github.com/fsprojects/FSharp.Data.SqlClient/pull/108","id":56805611,"number":108,"title":"implement fsprojects/FSharp.Data.SqlClient#107","user":{"login":"smoothdeveloper","id":87944,"avatar_url":"https://avatars.githubusercontent.com/u/87944?v=3","gravatar_id":"","url":"https://api.github.com/users/smoothdeveloper","html_url":"https://github.com/smoothdeveloper","followers_url":"https://api.github.com/users/smoothdeveloper/followers","following_url":"https://api.github.com/users/smoothdeveloper/following{/other_user}","gists_url":"https://api.github.com/users/smoothdeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/smoothdeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smoothdeveloper/subscriptions","organizations_url":"https://api.github.com/users/smoothdeveloper/orgs","repos_url":"https://api.github.com/users/smoothdeveloper/repos","events_url":"https://api.github.com/users/smoothdeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/smoothdeveloper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-06T12:21:48Z","updated_at":"2015-02-10T18:19:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fsprojects/FSharp.Data.SqlClient/pulls/108","html_url":"https://github.com/fsprojects/FSharp.Data.SqlClient/pull/108","diff_url":"https://github.com/fsprojects/FSharp.Data.SqlClient/pull/108.diff","patch_url":"https://github.com/fsprojects/FSharp.Data.SqlClient/pull/108.patch"},"body":" Extensible hook to create and alter command via a third constructor overload for SqlCommandProvider\r\n\r\n* third constructor takes an unit -> SqlCommand functor to create command and an Option<SqlCommand -> unit> to alter the command before it's execution\r\n* change RuntimeSqlCommand constructor to take an additional Option<SqlCommand -> unit>\r\n* change logic in RuntimeSqlCommand constructor implementation to\r\n  * use the functor to create the command when using this new feature\r\n  * don't set the command timeout when using this new feature\r\n* apply statement preparation if a command alteration functor is given\r\n* required change in SqlProgrammabilityProvider which relies on RuntimeSqlCommand constructor\r\n* add set of tests checking behaviour for command alteration functor\r\n* add set of tests checking (most tests based on existing tests from TypeProviderTest, just checking using the new constructor with create command functor)"},"comment":{"url":"https://api.github.com/repos/fsprojects/FSharp.Data.SqlClient/issues/comments/73752730","html_url":"https://github.com/fsprojects/FSharp.Data.SqlClient/pull/108#issuecomment-73752730","issue_url":"https://api.github.com/repos/fsprojects/FSharp.Data.SqlClient/issues/108","id":73752730,"user":{"login":"dmitry-a-morozov","id":3004037,"avatar_url":"https://avatars.githubusercontent.com/u/3004037?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitry-a-morozov","html_url":"https://github.com/dmitry-a-morozov","followers_url":"https://api.github.com/users/dmitry-a-morozov/followers","following_url":"https://api.github.com/users/dmitry-a-morozov/following{/other_user}","gists_url":"https://api.github.com/users/dmitry-a-morozov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitry-a-morozov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitry-a-morozov/subscriptions","organizations_url":"https://api.github.com/users/dmitry-a-morozov/orgs","repos_url":"https://api.github.com/users/dmitry-a-morozov/repos","events_url":"https://api.github.com/users/dmitry-a-morozov/events{/privacy}","received_events_url":"https://api.github.com/users/dmitry-a-morozov/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T18:19:32Z","updated_at":"2015-02-10T18:19:32Z","body":"@rojepp I have two comments:\r\n1) In general the library doesn't attempt to cover every use case but most frequently used. \r\n2) No way we can have reflection (or dynamic queries) and type safety. Pick your poison. If you really need dynamic queries use raw ADO.NET or Dapper or ..."}}