This is a migrated thread and some comments may be shown as answers.

Problems with Entity Framework

1 Answer 44 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
kencox
Top achievements
Rank 1
kencox asked on 13 Jan 2010, 12:18 AM
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 

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 14 Jan 2010, 01:31 PM
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?

Regards,
Kaloyan
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.
Tags
Code Analysis
Asked by
kencox
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or