C# Beginner to advanced - Lesson 52 - LINQ part 3 Query syntax

مجله خبری، آموزشی پرشین تک
منتشر شده در 11 خرداد 1397

LINQ Syntax:

There are two basic ways to write a LINQ query:

Query Syntax or Query Expression Syntax

Method Syntax or Method extension syntax or Fluent syntax


Query syntax is similar to SQL (Structured Query Language) for a database. It is defined within the C# or VB code.

Query Syntax starts with from clause and can be end with Select or GroupBy clause.

Use various other operators like filtering, joining, grouping, sorting operators to construct the desired result.

Implicitly typed variable - var can be used to hold the result of the LINQ query.

LINQ query syntax always ends with a Select or Group clause.

The Select clause is used to shape the data. You can select the whole object as it is or only some properties of it.


ankpro

ankpro training

Asp.net MVC

C#

C sharp

Bangalore

Rajajinagar

Selenium

Coded UI

Mobile automation testing

Mobile testing

JQuery

JavaScript

.Net

Components of the .Net framework

Hello World

Literal

Keywords

Variable

Data types

Operators

Branching

Loops

Arrays

ArrayList

Strings

String Builder

Structures

Enums

Functions

Classes

Inheritance

Polymorphism

Properties

Indexers

Events

Nested Classes

Delegates

Anonymous methods

Labda expressions

Abstract classes

Exception Handling

Linq

Interfaces

Extension methods

Anonymous types

Generics

Collections

Garbage Collection

Reflection

Attributes

Input and output statements

Type casting

Partial Methods

Partial Classes

Boxing and Unboxing

Var vs Dynamic vs Object

دیدگاه کاربران