SqlConnectionFactory Constructor

 

Initializes a new instance of the SqlConnectionFactory class.

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

NameDescription
System_CAPS_pubmethodSqlConnectionFactory()

Creates a new connection factory with a default BaseConnectionString property of 'Data Source=.\SQLEXPRESS; Integrated Security=True; MultipleActiveResultSets=True;'.

System_CAPS_pubmethodSqlConnectionFactory(String)

Creates a new connection factory with the given BaseConnectionString property.


SqlConnectionFactory Constructor ()

Creates a new connection factory with a default BaseConnectionString property of 'Data Source=.\SQLEXPRESS; Integrated Security=True; MultipleActiveResultSets=True;'.

public SqlConnectionFactory()

SqlConnectionFactory Constructor (String)

Creates a new connection factory with the given BaseConnectionString property.

public SqlConnectionFactory(
	string baseConnectionString
)

Parameters

baseConnectionString
Type: System.String

The connection string to use for options to the database other than the 'Initial Catalog'. The 'Initial Catalog' will be prepended to this string based on the database name when CreateConnection is called.