Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 2.07 KB

File metadata and controls

45 lines (28 loc) · 2.07 KB

SQL Server SELECT

ELINQ extends DbSet with a Query method. As any LINQ method, it accepts a Lambda. The Lambda parameters are the entities we want to participate in the query and return value is the result of SELECT invocation:

A) SQL Server SELECT – retrieve some columns of a table

Retrieving some columns is not a common case in EF and requires declaration of the dedicated keyless entity (FullName).

Another option is to use LINQ for the anonymous top level projection. See how easy is to mix ELINQ and LINQ:

B) SQL Server SELECT – retrieve all columns from a table

C) SQL Server SELECT – sort the result set

D) SQL Server SELECT – group rows into groups example

E) SQL Server SELECT – filter groups example


< BACK | HOME