为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:dm8_20241022_x86_rh6_64_single.tar linux docker安装
【操作系统】:Windows 11 家庭版
【CPU】:
【问题描述】*:
"DM.Microsoft.EntityFrameworkCore" Version="7.0.0.27767"
System.InvalidCastException: Invalid cast from 'System.DateTime' to 'System.DateTimeOffset'.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at Dm.DmDataReader.GetFieldValue[T](Int32 ordinal)
at lambda_method1928(Closure, QueryContext, DbDataReader, ResultContext, SingleQueryResultCoordinator)
at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable
1 asyncEnumerable, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
at Volo.Abp.Identity.EntityFrameworkCore.EfCoreIdentityUserRepository.FindByNormalizedUserNameAsync(String normalizedUserName, Boolean includeDetails, CancellationToken cancellationToken)
这个问题解决了吗
解决了吗?我也遇到相同的问题。现在只能用这个驱动
<PackageReference Include="Microsoft.EntityFrameworkCore.Dm" Version="6.0.0.16623" />
简要描述下问题