Problems with Entity Framework

2 posts, 0 answers
  1. Ken Cox
    Ken Cox avatar
    100 posts
    Member since:
    Oct 2002

    Posted 12 Jan 2010 Link to this post

    I've just installed V 2010.1.108.0 and noticed significant progress with LINQ analysis.

    However, JustCode still doesn't like Entity Framework classes with LINQ.

    It recognizes custs (plural) in the following code but flags each cust (singular)  as an unknown entity.

           Dim custs = From c In customersentity.Contact _  
                        Where c.Customer = True And c.BusActivityID = BaId Order By c.Company, c.Name  
            For Each cust In custs  
                Dim strCompany As String = cust.Company  
                Dim strName As String = cust.Name  
                Dim intRecordID As Int32 = cust.RecordID 

  2. Kaloyan
    Kaloyan avatar
    82 posts

    Posted 14 Jan 2010 Link to this post

    Hi Ken,

    I tried to reproduce the issue you reported but had no success in doing that. I've attached a sample project that attempts to reproduce the behavior you described and everything in it seems to work just fine. Am I doing something wrong?
    By the way, have you tried to refresh JustCode's code analysis (menu JustCode -> Refresh Code Analysis), when you had that issue?

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top