LocalDbConnectionFactory Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LocalDbConnectionFactory(String) |
Creates a new instance of the connection factory for the given version of LocalDb. For SQL Server 2012 LocalDb use "v11.0". For SQL Server 2014 and later LocalDb use "mssqllocaldb". |
LocalDbConnectionFactory(String, String) |
Creates a new instance of the connection factory for the given version of LocalDb. For SQL Server 2012 LocalDb use "v11.0". For SQL Server 2014 and later LocalDb use "mssqllocaldb". |
LocalDbConnectionFactory(String)
Creates a new instance of the connection factory for the given version of LocalDb. For SQL Server 2012 LocalDb use "v11.0". For SQL Server 2014 and later LocalDb use "mssqllocaldb".
public LocalDbConnectionFactory (string localDbVersion);
new System.Data.Entity.Infrastructure.LocalDbConnectionFactory : string -> System.Data.Entity.Infrastructure.LocalDbConnectionFactory
Public Sub New (localDbVersion As String)
Parameters
- localDbVersion
- String
The LocalDb version to use.
Applies to
LocalDbConnectionFactory(String, String)
Creates a new instance of the connection factory for the given version of LocalDb. For SQL Server 2012 LocalDb use "v11.0". For SQL Server 2014 and later LocalDb use "mssqllocaldb".
public LocalDbConnectionFactory (string localDbVersion, string baseConnectionString);
new System.Data.Entity.Infrastructure.LocalDbConnectionFactory : string * string -> System.Data.Entity.Infrastructure.LocalDbConnectionFactory
Public Sub New (localDbVersion As String, baseConnectionString As String)
Parameters
- localDbVersion
- String
The LocalDb version to use.
- baseConnectionString
- String
The connection string to use for options to the database other than the 'Initial Catalog', 'Data Source', and 'AttachDbFilename'. The 'Initial Catalog' and 'AttachDbFilename' will be prepended to this string based on the database name when CreateConnection is called. The 'Data Source' will be set based on the LocalDbVersion argument.
Applies to
Entity Framework