{"action":"created","issue":{"url":"https://api.github.com/repos/docevaad/Chain/issues/165","repository_url":"https://api.github.com/repos/docevaad/Chain","labels_url":"https://api.github.com/repos/docevaad/Chain/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/docevaad/Chain/issues/165/comments","events_url":"https://api.github.com/repos/docevaad/Chain/issues/165/events","html_url":"https://github.com/docevaad/Chain/issues/165","id":190082411,"number":165,"title":"CompiledMaterializers: error, cannot implicitly convert type 'object' to 'byte[]'","user":{"login":"mikilion","id":5963715,"avatar_url":"https://avatars.githubusercontent.com/u/5963715?v=3","gravatar_id":"","url":"https://api.github.com/users/mikilion","html_url":"https://github.com/mikilion","followers_url":"https://api.github.com/users/mikilion/followers","following_url":"https://api.github.com/users/mikilion/following{/other_user}","gists_url":"https://api.github.com/users/mikilion/gists{/gist_id}","starred_url":"https://api.github.com/users/mikilion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikilion/subscriptions","organizations_url":"https://api.github.com/users/mikilion/orgs","repos_url":"https://api.github.com/users/mikilion/repos","events_url":"https://api.github.com/users/mikilion/events{/privacy}","received_events_url":"https://api.github.com/users/mikilion/received_events","type":"User","site_admin":false},"labels":[{"id":326595270,"url":"https://api.github.com/repos/docevaad/Chain/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"Grauenwolf","id":10627661,"avatar_url":"https://avatars.githubusercontent.com/u/10627661?v=3","gravatar_id":"","url":"https://api.github.com/users/Grauenwolf","html_url":"https://github.com/Grauenwolf","followers_url":"https://api.github.com/users/Grauenwolf/followers","following_url":"https://api.github.com/users/Grauenwolf/following{/other_user}","gists_url":"https://api.github.com/users/Grauenwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/Grauenwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grauenwolf/subscriptions","organizations_url":"https://api.github.com/users/Grauenwolf/orgs","repos_url":"https://api.github.com/users/Grauenwolf/repos","events_url":"https://api.github.com/users/Grauenwolf/events{/privacy}","received_events_url":"https://api.github.com/users/Grauenwolf/received_events","type":"User","site_admin":false},"assignees":[{"login":"Grauenwolf","id":10627661,"avatar_url":"https://avatars.githubusercontent.com/u/10627661?v=3","gravatar_id":"","url":"https://api.github.com/users/Grauenwolf","html_url":"https://github.com/Grauenwolf","followers_url":"https://api.github.com/users/Grauenwolf/followers","following_url":"https://api.github.com/users/Grauenwolf/following{/other_user}","gists_url":"https://api.github.com/users/Grauenwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/Grauenwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grauenwolf/subscriptions","organizations_url":"https://api.github.com/users/Grauenwolf/orgs","repos_url":"https://api.github.com/users/Grauenwolf/repos","events_url":"https://api.github.com/users/Grauenwolf/events{/privacy}","received_events_url":"https://api.github.com/users/Grauenwolf/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-11-17T15:43:19Z","updated_at":"2016-12-01T09:45:28Z","closed_at":"2016-11-21T03:14:39Z","body":"I get this error when I use the compiled materializer extension:\r\n```\r\n{\r\n  \"Message\": \"An error has occurred.\",\r\n  \"ExceptionMessage\": \"(46,27): error CS0266: Cannot implicitly convert type 'object' to 'byte[]'. An explicit conversion exists (are you missing a cast?)\",\r\n  \"ExceptionType\": \"Microsoft.CodeAnalysis.Scripting.CompilationErrorException\",\r\n  \"StackTrace\": \"   at Microsoft.CodeAnalysis.Scripting.ScriptBuilder.ThrowIfAnyCompilationErrors(DiagnosticBag diagnostics, DiagnosticFormatter formatter)\\r\\n   at Microsoft.CodeAnalysis.Scripting.ScriptBuilder.CreateExecutor[T](ScriptCompiler compiler, Compilation compilation, CancellationToken cancellationToken)\\r\\n   at Microsoft.CodeAnalysis.Scripting.Script`1.GetExecutor(CancellationToken cancellationToken)\\r\\n   at Microsoft.CodeAnalysis.Scripting.Script`1.RunAsync(Object globals, CancellationToken cancellationToken)\\r\\n   at CSScriptLibrary.RoslynEvaluator.CompileCode(String scriptText)\\r\\n   at CSScriptLibrary.RoslynEvaluator.CreateDelegate[T](String code)\\r\\n   at Tortuga.Chain.CompiledMaterializers.CreateBuilder[TObject](IDataSource dataSource, String sql, IDataReader reader) in C:\\\\Source\\\\Chain\\\\Tortuga.Chain\\\\Tortuga.Chain.CompiledMaterializers.source\\\\shared\\\\CompiledMaterializers.cs:line 163\\r\\n   at Tortuga.Chain.Materializers.CompiledObjectMaterializer`3.<>c__DisplayClass3_0.<<ExecuteAsync>b__0>d.MoveNext() in C:\\\\Source\\\\Chain\\\\Tortuga.Chain\\\\Tortuga.Chain.CompiledMaterializers.source\\\\shared\\\\Materializers\\\\CompiledObjectMaterializer.cs:line 67\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Tortuga.Chain.SqlServerDataSource.<ExecuteAsync>d__35.MoveNext() in C:\\\\Source\\\\Chain\\\\Tortuga.Chain\\\\Tortuga.Chain.SqlServer.source\\\\shared\\\\SqlServerDataSource.cs:line 535\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Tortuga.Chain.Materializers.CompiledObjectMaterializer`3.<ExecuteAsync>d__3.MoveNext() in C:\\\\Source\\\\Chain\\\\Tortuga.Chain\\\\Tortuga.Chain.CompiledMaterializers.source\\\\shared\\\\Materializers\\\\CompiledObjectMaterializer.cs:line 63\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Tortuga.Chain.Materializers.Materializer`3.<ExecuteAsync>d__2.MoveNext() in C:\\\\Source\\\\Chain\\\\Tortuga.Chain\\\\Tortuga.Chain.Core.source\\\\shared\\\\Materializers\\\\Materializer`3.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\"\r\n}\r\n```\r\nThis is chain code:\r\n```\r\nawait DataContex.From(TableName, whereClause.ToString()).Compile().ToObject<User>(RowOptions.AllowEmptyResults).ExecuteAsync();\r\n```\r\nwhere \"User\" has a property of \"byte[ ]\" type."},"comment":{"url":"https://api.github.com/repos/docevaad/Chain/issues/comments/264126949","html_url":"https://github.com/docevaad/Chain/issues/165#issuecomment-264126949","issue_url":"https://api.github.com/repos/docevaad/Chain/issues/165","id":264126949,"user":{"login":"mikilion","id":5963715,"avatar_url":"https://avatars.githubusercontent.com/u/5963715?v=3","gravatar_id":"","url":"https://api.github.com/users/mikilion","html_url":"https://github.com/mikilion","followers_url":"https://api.github.com/users/mikilion/followers","following_url":"https://api.github.com/users/mikilion/following{/other_user}","gists_url":"https://api.github.com/users/mikilion/gists{/gist_id}","starred_url":"https://api.github.com/users/mikilion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikilion/subscriptions","organizations_url":"https://api.github.com/users/mikilion/orgs","repos_url":"https://api.github.com/users/mikilion/repos","events_url":"https://api.github.com/users/mikilion/events{/privacy}","received_events_url":"https://api.github.com/users/mikilion/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T09:45:27Z","updated_at":"2016-12-01T09:45:27Z","body":"You are welcome."}}
{"actor":{"display_login":"mikilion"}}