{"action":"created","issue":{"url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/26","repository_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL","labels_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/26/comments","events_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/26/events","html_url":"https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/26","id":152948069,"number":26,"title":"Saving object with jsonb field via EF7","user":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-05-04T07:43:33Z","updated_at":"2016-05-04T07:45:56Z","closed_at":null,"body":"_From @IC3Q on October 29, 2015 15:26_\n\nI'm getting an error when I'm trying to save object with jsonb field in it.\r\nModel looks like:\r\n```\r\n[Table(\"objects\")]\r\npublic class MyObject\r\n{\r\n    [Column(\"id\")]\r\n    [Key]\r\n    public int Id { get; set; }\r\n    [Column(\"features\")]\r\n    public string Features { get; set; }\r\n}\r\n```\r\nDatabase features column is type of jsonb.\r\n\r\nCode called to save entity:\r\n```\r\nusing(var context = new MyDatabaseContext())\r\n{\r\n    context.Objects.Add(new MyObject {Id = 1, Features = JsonConvert.SerializeObject(new MyObject { Id = 1})});\r\n    context.SaveChanges();\r\n}\r\n```\r\n\r\nAnd the exception:\r\n\r\n> Npgsql.NpgsqlException: 42804: column \"features\" is of type jsonb but expression is of type text\r\n\r\nI'm using Npgsql.EntityFramework7 provider, version 3.1.0-beta8-2.\r\nIn Npgsql.EntityFramework6, ver. 3.0.3 everything worked smoothly.\n\n_Copied from original issue: npgsql/npgsql#845_"},"comment":{"url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/comments/216768655","html_url":"https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/26#issuecomment-216768655","issue_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/26","id":216768655,"user":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T07:45:56Z","updated_at":"2016-05-04T07:45:56Z","body":"This should work fine in rc2 now that aspnet/EntityFramework#3617 has been resolved, confirm."}}