{"action":"created","issue":{"url":"https://api.github.com/repos/JasperFx/marten/issues/699","repository_url":"https://api.github.com/repos/JasperFx/marten","labels_url":"https://api.github.com/repos/JasperFx/marten/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/JasperFx/marten/issues/699/comments","events_url":"https://api.github.com/repos/JasperFx/marten/issues/699/events","html_url":"https://github.com/JasperFx/marten/issues/699","id":212818327,"node_id":"MDU6SXNzdWUyMTI4MTgzMjc=","number":699,"title":"Patch API supporting multiple fields","user":{"login":"maxsolender","id":1944820,"node_id":"MDQ6VXNlcjE5NDQ4MjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1944820?v=4","gravatar_id":"","url":"https://api.github.com/users/maxsolender","html_url":"https://github.com/maxsolender","followers_url":"https://api.github.com/users/maxsolender/followers","following_url":"https://api.github.com/users/maxsolender/following{/other_user}","gists_url":"https://api.github.com/users/maxsolender/gists{/gist_id}","starred_url":"https://api.github.com/users/maxsolender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxsolender/subscriptions","organizations_url":"https://api.github.com/users/maxsolender/orgs","repos_url":"https://api.github.com/users/maxsolender/repos","events_url":"https://api.github.com/users/maxsolender/events{/privacy}","received_events_url":"https://api.github.com/users/maxsolender/received_events","type":"User","site_admin":false},"labels":[{"id":609457028,"node_id":"MDU6TGFiZWw2MDk0NTcwMjg=","url":"https://api.github.com/repos/JasperFx/marten/labels/breaking%20change","name":"breaking change","color":"0052cc","default":false},{"id":272072664,"node_id":"MDU6TGFiZWwyNzIwNzI2NjQ=","url":"https://api.github.com/repos/JasperFx/marten/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-08T18:34:16Z","updated_at":"2019-04-08T15:29:27Z","closed_at":null,"author_association":"NONE","body":"I would like to be able to patch multiple fields in my json with one call (instead of calling patch N times if I want to patch N fields on the same record).\r\n\r\nFrom what I have read and seen in Marten github repo , it looks like this isn't supported."},"comment":{"url":"https://api.github.com/repos/JasperFx/marten/issues/comments/480881074","html_url":"https://github.com/JasperFx/marten/issues/699#issuecomment-480881074","issue_url":"https://api.github.com/repos/JasperFx/marten/issues/699","id":480881074,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MDg4MTA3NA==","user":{"login":"RapidOwl","id":1280948,"node_id":"MDQ6VXNlcjEyODA5NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/1280948?v=4","gravatar_id":"","url":"https://api.github.com/users/RapidOwl","html_url":"https://github.com/RapidOwl","followers_url":"https://api.github.com/users/RapidOwl/followers","following_url":"https://api.github.com/users/RapidOwl/following{/other_user}","gists_url":"https://api.github.com/users/RapidOwl/gists{/gist_id}","starred_url":"https://api.github.com/users/RapidOwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RapidOwl/subscriptions","organizations_url":"https://api.github.com/users/RapidOwl/orgs","repos_url":"https://api.github.com/users/RapidOwl/repos","events_url":"https://api.github.com/users/RapidOwl/events{/privacy}","received_events_url":"https://api.github.com/users/RapidOwl/received_events","type":"User","site_admin":false},"created_at":"2019-04-08T15:29:27Z","updated_at":"2019-04-08T15:29:27Z","author_association":"NONE","body":"I think this is the same issue I asked about in the Gitter today.\r\n\r\nI think this...\r\n```\r\nsession.Patch<Thing>(thing.Id).Set(x => x.BooleanThing, true);\r\nsession.Patch<Thing>(thing.Id).Set(x => x.StringThing, \"Thing\");\r\nsession.Patch<Thing>(thing.Id).Set(x => x.OtherStringThing, \"Other Thing\");\r\n```\r\n...would currently result in 3 SQL statements being emitted."}}
{"actor":{"display_login":"RapidOwl"}}