为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:
【操作系统】:
【CPU】:
【问题描述】*:你们这个EFCore6组件太臭了,估计根本没有经过测试,到处报错!
var entity = objContext.MD_Entity.Include(e => e.MD_EntityColumns).FirstOrDefault(l => l.TableName == tableName);
出错:
System.IndexOutOfRangeException
HResult=0x80131508
Message=Index was outside the bounds of the array.
Source=DmProvider
StackTrace:
在 Dm.DmConvertion.FourByteToInt(Byte[] byte1)
在 Dm.DmGetValue.GetInt(Int32 i, Byte[] val, Int32 CType, Int32 prec, Int32 scale)
在 Dm.DmDataReader.do_GetInt32(Int32 i)
在 Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable1.Enumerator.MoveNext() 在 System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable
1 source, Boolean& found)
在 Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
在 Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression)