注册

abp-vnext-->efcore-->Invalid cast from 'System.DateTime' to 'System.DateTimeOffset'

买宝石 2024/11/13 579 7

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【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](IAsyncEnumerable1 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)

0bebece3a3437db72dddc7cab9a4c90.png

回答 0
暂无回答
扫一扫
联系客服