ADO.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 373 Page Views: 

How do you use LINQ to SQL?



Posted By: Avi Date: 13 October 2010 02:34:47 PM
 Answer:

DataContext db = new DataContext(“connection string”); Table Orders = db.GetTable(); var res =from o in Orders Where o.Price > 100 select o;


Posted By: avibtech


Date: 13 October 2010 02:34:47 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image SDJq8z
Related Questions
ADO.Net : How do you save changes to Entities object?

How do you save changes to Entities object?

obj.SaveChanges();
Category: ADO.Net Date: 10/15/2010 8:42:48 AM
ADO.Net : What systems does the LINQ to SQL supports?

What systems does the LINQ to SQL supports?

SQL Server and SQL Server compact
Category: ADO.Net Date: 10/15/2010 5:55:48 AM
ADO.Net : What classes can you use to process XML data in memory?

What classes can you use to process XML data in memory?

XmlDocument, XPathDocument, XPathNavigator and LINQ to XML
Category: ADO.Net Date: 10/15/2010 4:21:48 AM
ADO.Net : How do you set up the connection timeout for SqlConnection object?

How do you set up the connection timeout for SqlConnection object?

By using ConnectionTimeout property
Category: ADO.Net Date: 10/15/2010 4:11:48 AM
ADO.Net : How do you handle binary large objects in DataReader?

How do you handle binary large objects in DataReader?

Binary large objects are stored in dataset as array of bytes
Category: ADO.Net Date: 10/15/2010 1:24:47 AM