Server Error in '/-' Application.

The property 'CustomerId' isn't mapped to a field or database construct of entity type 'AllowedCustomerGroupEntity'. Did you mean to call an extension method instead? ('Count' vs. 'Count()') ?

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryConstructionException: The property 'CustomerId' isn't mapped to a field or database construct of entity type 'AllowedCustomerGroupEntity'. Did you mean to call an extension method instead? ('Count' vs. 'Count()') ?

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ORMQueryConstructionException: The property 'CustomerId' isn't mapped to a field or database construct of entity type 'AllowedCustomerGroupEntity'. Did you mean to call an extension method instead? ('Count' vs. 'Count()') ?]
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.MemberAccessEvaluator.HandleMemberIsPartOfEntity(MemberExpression expressionToHandle, Expression memberContainer) +472
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.MemberAccessEvaluator.HandleMemberExpression(MemberExpression expressionToHandle) +274
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) +2090
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleBinaryExpression(BinaryExpression expressionToHandle) +41
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleBinaryExpressionBooleanOperator(BinaryExpression expressionToHandle) +10
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) +1790
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleBinaryExpression(BinaryExpression expressionToHandle) +41
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleBinaryExpressionBooleanOperator(BinaryExpression expressionToHandle) +10
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) +1790
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleLambdaExpression(LambdaExpression expressionToHandle) +52
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) +2176
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleAllAnyExpression(AllAnyExpression expressionToHandle) +85
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) +259
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleLambdaExpression(LambdaExpression expressionToHandle) +52
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) +2176
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleProjectionExpression(ProjectionExpression expressionToHandle) +41
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) +1159
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleSelectExpression(SelectExpression expressionToHandle, SelectExpression newInstance) +70
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleSelectExpression(SelectExpression expressionToHandle) +77
   SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) +1244
   SD.LLBLGen.Pro.LinqSupportClasses.LLBLGenProProviderBase.HandleExpressionTree(Expression expression) +997
   SD.LLBLGen.Pro.LinqSupportClasses.LLBLGenProProviderBase.System.Linq.IQueryProvider.Execute(Expression expression) +30
   System.Linq.Queryable.Any(IQueryable`1 source, Expression`1 predicate) +243
   WebShop.Data.UserService.User.get_IsSupervisor() in D:\BuildAgent\work\5d3b63098fbe545d\src\WebShop.Data\UserService\User.cs:467
   WebShop.Data.UserService.User.CreateDefaultCustomData() in D:\BuildAgent\work\5d3b63098fbe545d\src\WebShop.Data\UserService\User.cs:1080
   WebShop.Data.UserService.User.get_Data() in D:\BuildAgent\work\5d3b63098fbe545d\src\WebShop.Data\UserService\User.cs:38
   Webshop.Globals.Infrastructure.Extensions.HttpSessionStateExtensions.GetShoppingBasketForSession(User user) in D:\BuildAgent\work\5d3b63098fbe545d\src\Webshop.Globals\Infrastructure\Extensions\HttpSessionStateExtensions.cs:202
   Webshop.Globals.Infrastructure.Extensions.HttpSessionStateExtensions.GetShoppingBasket(HttpSessionStateBase session) in D:\BuildAgent\work\5d3b63098fbe545d\src\Webshop.Globals\Infrastructure\Extensions\HttpSessionStateExtensions.cs:146
   Webshop.Globals.Infrastructure.Extensions.HttpSessionStateExtensions.LoadCategories(HttpSessionStateBase session) in D:\BuildAgent\work\5d3b63098fbe545d\src\Webshop.Globals\Infrastructure\Extensions\HttpSessionStateExtensions.cs:242
   Webshop.Globals.Infrastructure.Extensions.HttpSessionStateExtensions.GetCurrentUser(HttpSessionStateBase session) in D:\BuildAgent\work\5d3b63098fbe545d\src\Webshop.Globals\Infrastructure\Extensions\HttpSessionStateExtensions.cs:65
   Webshop.Globals.Infrastructure.Extensions.HttpSessionStateExtensions.GetCurrentUser(HttpSessionState session) in D:\BuildAgent\work\5d3b63098fbe545d\src\Webshop.Globals\Infrastructure\Extensions\HttpSessionStateExtensions.cs:43
   WebshopApp.WebShopDesign.get_user() in D:\BuildAgent\work\5d3b63098fbe545d\src\WebshopApp\WebShopDesign.master.cs:137
   WebshopApp.WebShopDesign.Page_Init(Object sender, EventArgs e) in D:\BuildAgent\work\5d3b63098fbe545d\src\WebshopApp\WebShopDesign.master.cs:307
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnInit(EventArgs e) +97
   System.Web.UI.UserControl.OnInit(EventArgs e) +87
   System.Web.UI.Control.InitRecursive(Control namingContainer) +142
   System.Web.UI.Control.InitRecursive(Control namingContainer) +318
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +416


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0