In Chapter 8, in the section implementing explicit loading following the VS 2017 settings, I kept encountering
InvalidOperationException Exception: There is already an open DataReader associated with this Command which must be closed first.
anytime I tried confirming an explicit product load.
Seems to be solved by updating the connection string with MultipleActiveResultSets=True :
optionsBuilder.UseSqlServer(@"Data Source=(localdb)\mssqllocaldb;Initial Catalog=Northwind;Integrated Security=true;MultipleActiveResultSets=True;");
In Chapter 8, in the section implementing explicit loading following the VS 2017 settings, I kept encountering
InvalidOperationException Exception: There is already an open DataReader associated with this Command which must be closed first.
anytime I tried confirming an explicit product load.Seems to be solved by updating the connection string with MultipleActiveResultSets=True :
optionsBuilder.UseSqlServer(@"Data Source=(localdb)\mssqllocaldb;Initial Catalog=Northwind;Integrated Security=true;MultipleActiveResultSets=True;");