“/ctsbpm”应用程序中的服务器错误。

One or more validation errors were detected during model generation:

PointItemImage_PointItem_Target_PointItemImage_PointItem_Source: : The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role. The type of property 'PointItemId' on entity 'PointItemImage' does not match the type of property 'Id' on entity 'PointItem' in the referential constraint 'PointItemImage_PointItem'.
PointItemRead_PointItem_Target_PointItemRead_PointItem_Source: : The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role. The type of property 'PointItemId' on entity 'PointItemRead' does not match the type of property 'Id' on entity 'PointItem' in the referential constraint 'PointItemRead_PointItem'.

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.Entity.ModelConfiguration.ModelValidationException: One or more validation errors were detected during model generation:

PointItemImage_PointItem_Target_PointItemImage_PointItem_Source: : The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role. The type of property 'PointItemId' on entity 'PointItemImage' does not match the type of property 'Id' on entity 'PointItem' in the referential constraint 'PointItemImage_PointItem'.
PointItemRead_PointItem_Target_PointItemRead_PointItem_Source: : The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role. The type of property 'PointItemId' on entity 'PointItemRead' does not match the type of property 'Id' on entity 'PointItem' in the referential constraint 'PointItemRead_PointItem'.


源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[ModelValidationException: One or more validation errors were detected during model generation:

PointItemImage_PointItem_Target_PointItemImage_PointItem_Source: : The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role. The type of property 'PointItemId' on entity 'PointItemImage' does not match the type of property 'Id' on entity 'PointItem' in the referential constraint 'PointItemImage_PointItem'.
PointItemRead_PointItem_Target_PointItemRead_PointItem_Source: : The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role. The type of property 'PointItemId' on entity 'PointItemRead' does not match the type of property 'Id' on entity 'PointItem' in the referential constraint 'PointItemRead_PointItem'.
]
   System.Data.Entity.Core.Metadata.Edm.EdmModel.Validate() +256
   System.Data.Entity.DbModelBuilder.Build(DbProviderManifest providerManifest, DbProviderInfo providerInfo) +439
   System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) +79
   System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +222
   System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +224
   System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +884
   System.Data.Entity.Internal.InternalContext.Initialize() +26
   System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +20
   System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +69
   System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
   System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +59
   System.Linq.Queryable.Where(IQueryable`1 source, Expression`1 predicate) +61
   xCloudSoft.Points.FrontServices.PointItemService.GetPointItemFrontPagingList(Int32 pageNum, Int32 pageSize, Int32& totalItemCount, Int32 crsHotelId) +1324
   xCloudSoft.WebSite.Areas.EN.Controllers.PointController.Index() +2070
   lambda_method(Closure , ControllerBase , Object[] ) +87
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +229
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +39
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +70
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +72
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +387
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +38
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +68
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +68
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3770.0