Open lipanna opened 5 months ago
@lipanna in your connection string add ;MultipleActiveResultSets=True
Hi Simon, It is there by default, but doesn't seem to work...
Settings.ConnectionString = "Data Source=xxx;Initial Catalog=xxx;Integrated Security=True;MultipleActiveResultSets=True;Encrypt=false;TrustServerCertificate=true";
I'm calling SP that has 5 of these conditions:
If (condition) select a, b, c... RETURN 0;
If (condition) select a, b, c... RETURN 0;
SP always returns only one resultset. Each select has exactly the same columns. However, generated POCO contains 5 resultsets and I get an error message that EF doesn't support multiple resultsets. Is there a way around it? EF Core 6. Thanks.