DbConnectionInfo Constructor (String, String)

Entity Framework 5.0

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

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

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.

Show: