EntityConnectionStringBuilder Constructor (String^)
Initializes a new instance of the EntityConnectionStringBuilder class using the supplied connection string.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Parameters
- connectionString
-
Type:
System::String^
A provider-specific connection string to the underlying data source.
The supplied connectionString is not checked for valid keyword/value pairs. For valid keyword/value syntax, see ConnectionString.
The invariant Provider name must be specified in the connectionString parameter. Supported providers include the following:
System.Data.Odbc
System.Data.OleDb
System.Data.OracleClient
System.Data.SqlClient
Microsoft.SqlServerCe.Client
The following example demonstrates how to use the EntityConnectionStringBuilder in conjunction with a SqlConnectionStringBuilder. The code sets properties of a SqlConnectionStringBuilder to create a SqlConnection connection string that supplies part of the underlying provider connection string. Note that the Provider name cannot be set using the SqlConnectionStringBuilder because it is not valid SqlConnection connection string syntax. The code creates the EntityConnection connection string by setting EntityConnectionStringBuilder properties. It does not use the connectionString overload.
Available since 3.5