DbConnectionInfo Constructor

 

Initializes a new instance of the DbConnectionInfo class.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodDbConnectionInfo(String)

Initializes a new instance of the DbConnectionInfo class representing a connection that is specified in the application configuration file.

System_CAPS_pubmethodDbConnectionInfo(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.

public DbConnectionInfo(
	string connectionName
)

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.

public DbConnectionInfo(
	string connectionString,
	string providerInvariantName
)

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.