Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
The topics in this section describe some basic aspects of how you establish and maintain communication with the database.
In This Section
How to: Connect to a Database
Describes how to use the DataContext class to connect to a database.
How to: Directly Execute SQL Commands
Describes how you can use ExecuteCommand to send SQL-language commands.
How to: Reuse a Connection Between an ADO.NET Command and a DataContext
Provides examples of how to use an existing ADO.NET connection in a LINQ to SQL application.