payload: {"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/17614","repository_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore","labels_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/17614/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/17614/comments","events_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/17614/events","html_url":"https://github.com/aspnet/EntityFrameworkCore/issues/17614","id":489220463,"node_id":"MDU6SXNzdWU0ODkyMjA0NjM=","number":17614,"title":"InvalidOperationException 'Invalid attempt to call NextResult when reader is closed.'","user":{"login":"Dancingfatman","id":6739399,"node_id":"MDQ6VXNlcjY3MzkzOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6739399?v=4","gravatar_id":"","url":"https://api.github.com/users/Dancingfatman","html_url":"https://github.com/Dancingfatman","followers_url":"https://api.github.com/users/Dancingfatman/followers","following_url":"https://api.github.com/users/Dancingfatman/following{/other_user}","gists_url":"https://api.github.com/users/Dancingfatman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dancingfatman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dancingfatman/subscriptions","organizations_url":"https://api.github.com/users/Dancingfatman/orgs","repos_url":"https://api.github.com/users/Dancingfatman/repos","events_url":"https://api.github.com/users/Dancingfatman/events{/privacy}","received_events_url":"https://api.github.com/users/Dancingfatman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-09-04T15:07:22Z","updated_at":"2019-09-07T17:04:59Z","closed_at":"2019-09-07T17:04:59Z","author_association":"NONE","body":"\r\nGetting this exception when using ToList() and SaveChanges(). The below code does still run correctly though.\r\n\r\n```\r\nException message:\r\nSystem.InvalidOperationException: 'Invalid attempt to call NextResult when reader is closed.'\r\n\r\nStack trace:\r\nMicrosoft.Data.Sqlite.dll!Microsoft.Data.Sqlite.SqliteDataReader.NextResult()\r\nMicrosoft.Data.Sqlite.dll!Microsoft.Data.Sqlite.SqliteDataReader.Dispose(bool disposing)\r\nSystem.Data.Common.dll!System.Data.Common.DbDataReader.Dispose()\r\nMicrosoft.EntityFrameworkCore.Relational.dll!Microsoft.EntityFrameworkCore.Storage.RelationalDataReader.Dispose()\r\nMicrosoft.EntityFrameworkCore.Relational.dll!Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.QueryingEnumerable<EFCore_Test.MyObject>.Enumerator.Dispose()\r\nSystem.Private.CoreLib.dll!System.Collections.Generic.List<EFCore_Test.MyObject>.List(System.Collections.Generic.IEnumerable<EFCore_Test.MyObject> collection)\r\nSystem.Linq.dll!System.Linq.Enumerable.ToList<EFCore_Test.MyObject>(System.Collections.Generic.IEnumerable<EFCore_Test.MyObject> source)\r\nEFCore Test.dll!EFCore_Test.Program.Main(string[] args) Line 10\r\n\tat C:\\Users\\Simon\\source\\repos\\EFCore Test\\EFCore Test\\Program.cs(10)\r\n\r\n```\r\n\r\n### Steps to reproduce\r\nRun the below code to reproduce\r\n\r\n```c#\r\nusing Microsoft.Data.Sqlite;\r\nusing Microsoft.EntityFrameworkCore;\r\nusing System.Linq;\r\n\r\nnamespace EFCore_Test {\r\n    class Program {\r\n        static void Main(string[] args) {\r\n            using (var context = new MyDbContext()) {\r\n                context.Database.EnsureCreated();\r\n                var result = context.Collection.ToList();\r\n                context.Collection.Add(new MyObject());\r\n                context.SaveChanges();\r\n                result = context.Collection.ToList();\r\n            }\r\n        }\r\n    }\r\n\r\n    class MyDbContext : DbContext {\r\n        public DbSet<MyObject> Collection { get; set; }\r\n\r\n        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {\r\n            var connection = new SqliteConnection(\"DataSource=:memory:\");\r\n            connection.Open();\r\n            optionsBuilder.UseSqlite(connection);\r\n        }\r\n    }\r\n\r\n    class MyObject {\r\n        public int Id { get; set; }\r\n    }\r\n}\r\n```\r\n\r\n### Further technical details\r\nEF Core version: 3.0.0-preview8.19405.11\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/comments/529126414","html_url":"https://github.com/aspnet/EntityFrameworkCore/issues/17614#issuecomment-529126414","issue_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/17614","id":529126414,"node_id":"MDEyOklzc3VlQ29tbWVudDUyOTEyNjQxNA==","user":{"login":"Dancingfatman","id":6739399,"node_id":"MDQ6VXNlcjY3MzkzOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6739399?v=4","gravatar_id":"","url":"https://api.github.com/users/Dancingfatman","html_url":"https://github.com/Dancingfatman","followers_url":"https://api.github.com/users/Dancingfatman/followers","following_url":"https://api.github.com/users/Dancingfatman/following{/other_user}","gists_url":"https://api.github.com/users/Dancingfatman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dancingfatman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dancingfatman/subscriptions","organizations_url":"https://api.github.com/users/Dancingfatman/orgs","repos_url":"https://api.github.com/users/Dancingfatman/repos","events_url":"https://api.github.com/users/Dancingfatman/events{/privacy}","received_events_url":"https://api.github.com/users/Dancingfatman/received_events","type":"User","site_admin":false},"created_at":"2019-09-07T17:04:59Z","updated_at":"2019-09-07T17:04:59Z","author_association":"NONE","body":"Cant reproduce with the latest build either, thanks."}}
other: {"actor":{"display_login":"Dancingfatman"}}