-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intellisense not suggest properties of type in Lambda Expression #39468
Comments
Actually, I do not like both behaviors: C# and VB. They do differently but both with issues. Below are code samples based on the EntityFramework sample provided by the customer in VS Feedback. Each for them (C# and VB) had 4 overloads. Semantic model returns just a single candidate symbol for each: VB - for a string parameter and C# for the custom class parameter.
|
It seems that the problem is with ranking candidate symbols for the specific overloads in the semantic model: it leaves 1 symbol of 4 candidates and the choice is not obvious. Working with @AlekseyTs on original investigations in VB. |
This issue has been moved from a ticket on Developer Community.
The scenario of the problem is as follows:
I have 3 projects in one solution:
Project 1. EFDAL (C #)
Project 2. EFDAL. Test (C #)
Project 3. EFDALVB (VB)
In the EFDAL project (C #) I have the classes: articulo, marca.
From projects 2 and 3 reference to the EFDAL project.
In project 3 (VB), intellisense does not suggest the properties of the type of entity that is queried in the Lambda expression of the . Include method.
Include <T, TProperty> (IQueryable <T>, Expression <Func <T, TProperty >>)
According to the tests I found that the problem occurs in projects of type Visual Basic. In C# if the intellisense works correctly.
Example C #
var currentArticulo = (from m in DC.articulos.Include(t => t.marca) where m.codigo == "6463" select m). First();
The property t.marca is suggested correctly
Example VB
Dim currentArt = (From m In DC.articulos.Include(Function(t) t.marca) Where m.codigo = "6463" Select m)
The property t.marca is NOT suggested
I attached video (.gif) and SourceCode.zip with the evidence.
Thank you
Original Comments
Visual Studio Feedback System on 10/17/2019, 10:59 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Visual Studio Feedback System on 10/21/2019, 10:17 AM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: