DbConnectionInfo Constructors

Definition

Overloads

DbConnectionInfo(String)

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

DbConnectionInfo(String, String)

Creates a new instance of DbConnectionInfo based on a connection string.

DbConnectionInfo(String)

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

public DbConnectionInfo (string connectionName);
new System.Data.Entity.Infrastructure.DbConnectionInfo : string -> System.Data.Entity.Infrastructure.DbConnectionInfo
Public Sub New (connectionName As String)

Parameters

connectionName
String

The name of the connection string in the application configuration.

Applies to

DbConnectionInfo(String, String)

Creates a new instance of DbConnectionInfo based on a connection string.

public DbConnectionInfo (string connectionString, string providerInvariantName);
new System.Data.Entity.Infrastructure.DbConnectionInfo : string * string -> System.Data.Entity.Infrastructure.DbConnectionInfo
Public Sub New (connectionString As String, providerInvariantName As String)

Parameters

connectionString
String

The connection string to use for the connection.

providerInvariantName
String

The name of the provider to use for the connection. Use 'System.Data.SqlClient' for SQL Server.

Applies to