{"action":"opened","issue":{"url":"https://api.github.com/repos/serilog/serilog/issues/361","labels_url":"https://api.github.com/repos/serilog/serilog/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/serilog/serilog/issues/361/comments","events_url":"https://api.github.com/repos/serilog/serilog/issues/361/events","html_url":"https://github.com/serilog/serilog/issues/361","id":55102341,"number":361,"title":"MSSql Sink should have the SourceContext as a column","user":{"login":"worldspawn","id":819581,"avatar_url":"https://avatars.githubusercontent.com/u/819581?v=3","gravatar_id":"","url":"https://api.github.com/users/worldspawn","html_url":"https://github.com/worldspawn","followers_url":"https://api.github.com/users/worldspawn/followers","following_url":"https://api.github.com/users/worldspawn/following{/other_user}","gists_url":"https://api.github.com/users/worldspawn/gists{/gist_id}","starred_url":"https://api.github.com/users/worldspawn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worldspawn/subscriptions","organizations_url":"https://api.github.com/users/worldspawn/orgs","repos_url":"https://api.github.com/users/worldspawn/repos","events_url":"https://api.github.com/users/worldspawn/events{/privacy}","received_events_url":"https://api.github.com/users/worldspawn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-22T01:22:32Z","updated_at":"2015-01-22T01:22:32Z","closed_at":null,"body":"Hi there, IMHO the SourceContext should be a first class column on the ms sql sink table. Having it buried in the properties xml cancels out its usefulness as I can't (easily/performantly) query by sourcecontext. The documentation for the ForContext method states\r\n\r\n[Writing Log Events](https://github.com/serilog/serilog/wiki/Writing-Log-Events)\r\n\r\n>The event written will include a property SourceContext with value \"MyNamespace.MyClass\" that can later be used to filter out noisy events, or selectively write them to particular sinks.\r\n\r\nI don't think the current implementation achieves this as I cannot use it to filter rows from a sql query."}}