Friday, 22 November 2013

Difference Between LINQ and SQL Select Query  Syntax.


Select Only :
The select statement is used in SQL to specify what data you would like returned when querying the MSSQL MYSQL LINQ database. An asterisks [*] will return all data, or you can choose specific data.
SQL : select(clause) * from (clause) from <table Name>
            select * from employe.

LINQ : from <instance> in <table name or table object name> select <instance>
           from cust in customer select cust;

No comments:

Post a Comment