SqlConnectionFactory Constructor
Initializes a new instance of the SqlConnectionFactory class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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 Constructor ()
Creates a new connection factory with a default BaseConnectionString property of 'Data Source=.\SQLEXPRESS; Integrated Security=True; MultipleActiveResultSets=True;'.
SqlConnectionFactory Constructor (String)
Creates a new connection factory with the given BaseConnectionString property.
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.