You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If anything throws after that, like ReadAsync, and the current command is the last, the catch (Exception ex) block will throw IndexOutOfRangeException instead.
Applies only for version 6
I've stumbled across it a while ago, when my entity didn't match my table schema, but the exception was somehow cryptic.
After a bit of research I've found the following:
efcore.pg/src/EFCore.PG/Update/Internal/NpgsqlModificationCommandBatch.cs
Line 200 in f8a72da
If anything throws after that, like
ReadAsync
, and the current command is the last, thecatch (Exception ex)
block will throwIndexOutOfRangeException
instead.efcore.pg/src/EFCore.PG/Update/Internal/NpgsqlModificationCommandBatch.cs
Lines 220 to 226 in f8a72da
The solution could look like this:
It is similar to version 7
efcore.pg/src/EFCore.PG/Update/Internal/NpgsqlModificationCommandBatch.cs
Lines 149 to 155 in 3fb24ff
The text was updated successfully, but these errors were encountered: