Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 "Introduce Variable" and LINQ

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Uniwares Posted - Feb 09 2020 : 07:20:55 AM
When selecting a LINQ expression, the "Introduce Variable" always defaults to "bool" as variable type and doesnt detect the correct type.

Seems to be true for all LINQ expressions. Strangely, when I select only part of an expression, it defaults to "var name" instead of "bool name".


return from b in dc.BatchParts where (b.ID == 1) select b;

Selecting the underlined part defaults to bool.

return from b in dc.BatchParts where (b.ID == 1) select b;

Selecting the underlined part here defaults to var.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 11 2020 : 1:31:05 PM
Unfortunately VA's understanding of Linq is still rather poor, which is what is happening here:

case=962

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000