Managed Connections

Much like classic ADO, the OleDb and SQL Managed Connection objects (OleDbConnection and SqlConnection) provide a set of properties that might be familiar to you. These are listed in Table 3.1. Properties that apply to only one of the Managed Providers are indicated.

Table 3.1. Managed Connection Properties
Property Description
ConnectionString Gets or sets the string used to open a data store.
ConnectionTimeout Gets or sets the time to wait while establishing a connection before terminating the attempt and generating an error.
Container Returns the IContainer that contains the object.
Database Gets or sets the name of the current database or the database to be used once a connection is open.
DataSource Gets or sets the ...

Get Programming Data-Driven Web Applications with ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.