Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
how to make query's with the help of linQ to sql
Posted

hi,
In short, in order to make queries using Linq to Sql, you need to create a Dbml file. Then, create your ORM which is your tables on that and then use an instance of the dbml to make different queries. Here are some useful links:

http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx[^]

http://www.hookedonlinq.com/LINQtoSQL5MinuteOverview.ashx[^]

I hope it helps,
Cheers
 
Share this answer
 
Comments
jinenk 11-Jun-12 15:23pm    
and what are the advantages of using sql .??
Reza Ahmadi 11-Jun-12 15:29pm    
Your question is not clear. Do you mean advantages of Sql over LINQ to Sql?
jinenk 12-Jun-12 8:30am    
yes advantages of sql over LINQ to sql
Reza Ahmadi 12-Jun-12 8:39am    
here you can find the advantages of LINQ (in the end of the article):
http://www.codeproject.com/Articles/22000/LINQ-to-SQL
This might help you.
this artical include

Need for LINQ
Advantages of LINQ
and Tutorial for beginners

&lt;a href=&quot;http://www.codeproject.com/Tips/590978/LINQ-Tutorial-for-Beginners&quot;&gt;LINQ Tutorial for Beginners&lt;/a&gt;[&lt;a href=&quot;http://www.codeproject.com/Tips/590978/LINQ-Tutorial-for-Beginners&quot; target=&quot;_blank&quot; title=&quot;New Window&quot;&gt;^&lt;/a&gt;]</pre>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900