Share via


SqlConnectionFactory Constructors

Definition

Overloads

SqlConnectionFactory()

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

SqlConnectionFactory(String)

Creates a new connection factory with the given BaseConnectionString property.

SqlConnectionFactory()

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

public SqlConnectionFactory ();
Public Sub New ()

Applies to

SqlConnectionFactory(String)

Creates a new connection factory with the given BaseConnectionString property.

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

Parameters

baseConnectionString
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.

Applies to