DbConnectionInfo Constructor
Initializes a new instance of the DbConnectionInfo class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | DbConnectionInfo(String) | Initializes a new instance of the DbConnectionInfo class representing a connection that is specified in the application configuration file. |
![]() | DbConnectionInfo(String, String) | Initializes a new instance of the DbConnectionInfo class based on a connection string. |
DbConnectionInfo Constructor (String)
Initializes a new instance of the DbConnectionInfo class representing a connection that is specified in the application configuration file.
Parameters
- connectionName
-
Type:
System.String
The name of the connection string in the application configuration.
DbConnectionInfo Constructor (String, String)
Initializes a new instance of the DbConnectionInfo class based on a connection string.
Parameters
- connectionString
-
Type:
System.String
The connection string to use for the connection.
- providerInvariantName
-
Type:
System.String
The name of the provider to use for the connection. Use 'System.Data.SqlClient' for SQL Server.