Linq Syntax

[Solved] Linq Syntax | Scala - Code Explorer | yomemimo.com
Question : linq syntax

Answered by : amrit-dumre

// query syntax
from object in datasource | Initialization //similar to (var item in items) in foreach loop
where condition | Condition
select object | Selection
//method syntax
DataSource.ConditionMethod().SelectionMethod() | | |
Initialization Condition Selection
//selection is at last unlike SQL

Source : https://dotnettutorials.net/lesson/different-ways-to-write-linq-query/ | Last Update : Sun, 22 May 22

Answers related to linq syntax

Code Explorer Popular Question For Scala