dotnet / ef6

This is the codebase for Entity Framework 6 (previously maintained at https://entityframework.codeplex.com). Entity Framework Core is maintained at https://github.com/dotnet/efcore.
https://docs.microsoft.com/ef/ef6
MIT License
1.43k stars 545 forks source link

Exception thrown: 'System.IndexOutOfRangeException' in System.Data.dll #2114

Closed ap0405140 closed 1 year ago

ap0405140 commented 1 year ago

.net framework 4.8+entity framework 6.4.4

Codes: List xx;

tsql = "select...."; var xxxx = DB.Database.SqlQuery(tsql); xx = xxxx.ToList();

Result: variable xx can get a list, but some error in Output Window: Exception thrown: 'System.IndexOutOfRangeException' in System.Data.dll Exception thrown: 'System.IndexOutOfRangeException' in System.Data.dll Exception thrown: 'System.IndexOutOfRangeException' in System.Data.dll

this error cause by last statement(xx = xxxx.ToList();), why?

ajcvickers commented 1 year ago

This issue has been closed because EF6 is no longer being actively developed. We are instead focusing on stability of the codebase, which means we will only make changes to address security issues. See the repo README for more information.