aspnetzero和电动工具可能存在的问题

问题描述 投票:0回答:1

我创建了一个实体,当我添加一行时,一切正常,当我进行视图(有时),更新或删除时,我得到一个“内部错误”。我不知道是什么问题。

这是一个简单的实体:qazxsw poi qazxsw poi

我已经从1个月前下载了代码,并且发生在我使用电动工具添加的所有实体上。非常感谢任何帮助。

INFO 2019-02-18 22:03:44,609 [64] ore.Mvc.Internal.ControllerActionInvoker - 执行的动作OrthoResInfo.Web.Areas.App.Controllers.TblTable1sController.CreateOrEditModal(OrthoResInfo.Web.Mvc)in​​ 624.4343ms INFO 2019- 02-18 22:03:44,609 [64] ft.AspNetCore.Routing.EndpointMiddleware - 执行端点'OrthoResInfo.Web.Areas.App.Controllers.TblTable1sController.CreateOrEditModal(OrthoResInfo.Web.Mvc)'ERROR 2019-02-18 22 :03:44,610 [64] nostics.DeveloperExceptionPageMiddleware - 执行请求时发生了未处理的异常。 System.Reflection.AmbiguousMatchException:找到了模糊匹配。 at System.RuntimeType.GetPropertyImpl(String name,BindingFlags bindingAttr,Binder binder,Type returnType,Type [] types,ParameterModifier [] modifiers)at System.Type.GetProperty(String name,BindingFlags bindingAttr)at System.Linq.Expressions.Expression .PropertyOrField(表达式表达式,String propertyOrFieldName)位于Abp.Domain.Repositories.AbpRepositoryBasepic13.FirstOrDefaultAsync(TPrimaryKey id)中的D:\ Github \ aspnetboilerplate \ src \ Abp.EntityFrameworkCore \ EntityFrameworkCore \ Repositories \ EfCoreRepositoryBaseOfTEntityAndTPrimaryKey.cs:第118行,位于Abp。 Threading.InternalAsyncHelper.AwaitTaskWithPostActionAndFinallyAndGetResult [T](Taskpic21 postAction,Action2.CreateEqualityExpressionForId(TPrimaryKey id) in D:\Github\aspnetboilerplate\src\Abp\Domain\Repositories\AbpRepositoryBase.cs:line 266 at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase1输入)在d:\ ASPNetZero \ Github上\ OrthoResInfo \ SRC \ OrthoResInfo.Application \ Nstable1 \ TblTable1sAppService.cs:线74在Abp.Threading.InternalAsyncHelper.AwaitTaskWithPostActionAndFinallyAndGetResult [T] (Task1 actualReturnValue, Func1 postAction,Action1 finalAction) at OrthoResInfo.Nstable1.TblTable1sAppService.GetTblTable1ForEdit(EntityDto1 actualReturnValue,Action1 actualReturnValue, Func1 id)在D:\ ASPNetZero \ Githu中b \ OrthoResInfo \ src \ OrthoResInfo.Web.Mvc \ Areas \ App \ Controllers \ TblTable1sController.cs:位于Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper,ObjectMethodExecutor)的lambda_method(Closure,Object)的第42行Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow上的Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()中的Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()中的执行程序,对象控制器,Object []参数) Microsoft.AspNetCore.Mvc上的Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()中的Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State&next,Scope&scope,Object&state,Boolean&isCompleted)中的(ActionExecutedContext上下文)。 Micro的Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ExceptionContext context)中的Internal.ResourceInvoker.InvokeNextExceptionFilterAsync() soft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State&next,Scope&scope,Object&state,Boolean&isCompleted)at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow Microsoft.AspNetCore.Mvc上的Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()中的Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State&next,Scope&scope,Object&state,Boolean&isCompleted)上的(ResourceExecutedContext context)。位于Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext httpContext)的Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)中的Internal.ResourceInvoker.InvokeAsync()位于Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)at at标识处的Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)位于Identity的Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) ityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext上下文,IEndpointRouter路由器,IUserSession会话,IEventService事件)位于C:\ local \ identity \ server4 \ IdentityServer4 \ src \ Hosting \ IdentityServerMiddleware.cs:第72行,位于Microsoft.AspNetCore.Authentication.AuthenticationMiddleware .Invoke(HttpContext上下文)位于C:\ local \ identity \ server4 \ IdentityServer4 \ src \ Hosting \中IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext上下文)的Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.InvokeCore(HttpContext上下文) BaseUrlMiddleware.cs:第36行

asp.net-core aspnetboilerplate
1个回答
0
投票

好吧,经过很长一段时间,我发现了这篇文章:qazxsw poi

我已经向我的实体添加了IsDeleted和Id;因此生成的代码很糟糕。

© www.soinside.com 2019 - 2024. All rights reserved.