LINQ to Entities does not support LINQ expression node-type ' arrayindex '

Source: Internet
Author: User

If I can get a picture, I won't talk.

2015-03-28 14:53:24,440 [ten] ERROR log-system.notsupportedexception:linq to entities does not support LINQ expression node type ' arrayindex '.
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.NotSupportedTranslator.Translate ( Expressionconverter parent, Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression (Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.UnaryTranslator.TypedTranslate (expressionconverter Parent, Unaryexpression LINQ)
At System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator ' 1.Translate (expressionconverter Parent, Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression (Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.EqualsTranslator.TypedTranslate (expressionconverter Parent, Binaryexpression LINQ)
At System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator ' 1.Translate (expressionconverter Parent, Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression (Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.BinaryTranslator.TypedTranslate (expressionconverter Parent, Binaryexpression LINQ)
At System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator ' 1.Translate (expressionconverter Parent, Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression (Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateLambda (LambdaExpression Lambda, dbexpression Input
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateLambda (LambdaExpression Lambda, dbexpression Input, dbexpressionbinding& binding)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.OneLambdaTranslator.Translate ( Expressionconverter parent, Methodcallexpression call, dbexpression& source, dbexpressionbinding& Sourcebinding, dbexpression& Lambda)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.OneLambdaTranslator.Translate ( Expressionconverter parent, Methodcallexpression Call)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.SequenceMethodTranslator.Translate (expressionconverter parent, methodcallexpression call, Sequencemethod Sequencemethod)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.TypedTranslate ( Expressionconverter parent, Methodcallexpression LINQ)
At System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator ' 1.Translate (expressionconverter Parent, Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression (Expression LINQ)
In System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.Convert ()
In System.Data.Entity.Core.Objects.ELinq.ELinqQueryState.GetExecutionPlan (Nullable ' 1 formergeoption)
In System.Data.Entity.Core.Objects.ObjectQuery ' 1.<>c__displayclass3.<getresults>b__2 ()
In System.data.entity.core.objects.objectcontext.executeintransaction[t] (func ' 1 func, Idbexecutionstrategy Executionstrategy, Boolean startlocaltransaction, Boolean releaseconnectiononsuccess)
In System.Data.Entity.Core.Objects.ObjectQuery ' 1.<>c__displayclass3.<getresults>b__1 ()
In System.data.entity.sqlserver.defaultsqlexecutionstrategy.execute[tresult] (Func ' 1 operation)
At System.Data.Entity.Core.Objects.ObjectQuery ' 1.GetResults (Nullable ' 1 formergeoption)
In System.Data.Entity.Core.Objects.ObjectQuery ' 1.<system.collections.generic.ienumerable<t>. Getenumerator>b__0 ()
In System.Data.Entity.Internal.LazyEnumerator ' 1.MoveNext ()
At System.Collections.Generic.List ' 1..ctor (IEnumerable ' 1 collection)
In System.linq.enumerable.tolist[tsource] (IEnumerable ' 1 source)
In LoTBlog.Back.Controllers.ArticleController.Update (Int32 GroupType, Int32 ArticleID) Location c:\Users\DNT\Desktop\ Lotcode\lotblog\lotblog.back\controllers\articlecontroller.cs: Line No. 272
In Lambda_method (Closure, Controllerbase, object[])
In System.Web.Mvc.ActionMethodDispatcher.Execute (Controllerbase Controller, object[] parameters)
In System.Web.Mvc.ReflectedActionDescriptor.Execute (ControllerContext controllercontext, IDictionary ' 2 parameters)
In System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod (ControllerContext ControllerContext, Actiondescriptor Actiondescriptor, IDictionary ' 2 parameters)
In System.Web.Mvc.Async.AsyncControllerActionInvoker.InvokeSynchronousActionMethod (controllercontext ControllerContext, Actiondescriptor actiondescriptor, IDictionary ' 2 parameters)
In system.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass42.< Begininvokesynchronousactionmethod>b__41 ()
In System.web.mvc.async.asyncresultwrapper.<>c__displayclass8 ' 1.<beginsynchronous>b__7 (IAsyncResult _ )
In System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult ' 1.End ()
In System.web.mvc.async.asyncresultwrapper.end[tresult] (IAsyncResult asyncResult, Object tag)
In System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod (IAsyncResult asyncResult)
In system.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass37.<>c__displayclass39.< Begininvokeactionmethodwithfilters>b__33 ()
In system.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass4f.< Invokeactionmethodfilterasynchronously>b__49 ()
In system.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass37.< begininvokeactionmethodwithfilters>b__36 (IAsyncResult AsyncResult)
In System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult ' 1.End ()
In System.web.mvc.async.asyncresultwrapper.end[tresult] (IAsyncResult asyncResult, Object tag)
In System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters (IAsyncResult asyncResult)
In system.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass25.<>c__displayclass2a.< Begininvokeaction>b__20 ()
In System.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass25.<begininvokeaction>b__22 ( IAsyncResult AsyncResult)

LINQ to Entities does not support LINQ expression node-type ' arrayindex '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.