Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq syntax

// 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 by dotnettutorials.net #
 
PREVIOUS NEXT
Tagged: #linq #syntax
ADD COMMENT
Topic
Name
7+7 =