Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 "Introduce Variable" and LINQ
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
1764 Posts

Posted - Feb 09 2020 :  07:20:55 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
16339 Posts

Posted - Feb 11 2020 :  1:31:05 PM  Show Profile  Reply with Quote
Unfortunately VA's understanding of Linq is still rather poor, which is what is happening here:

case=962

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000