SqlCeConnectionFactory 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
SqlCeConnectionFactory(String) |
Creates a new connection factory with empty (default) DatabaseDirectory and BaseConnectionString properties. |
SqlCeConnectionFactory(String, String, String) |
Creates a new connection factory with the given DatabaseDirectory and BaseConnectionString properties. |
SqlCeConnectionFactory(String)
Creates a new connection factory with empty (default) DatabaseDirectory and BaseConnectionString properties.
public SqlCeConnectionFactory (string providerInvariantName);
new System.Data.Entity.Infrastructure.SqlCeConnectionFactory : string -> System.Data.Entity.Infrastructure.SqlCeConnectionFactory
Public Sub New (providerInvariantName As String)
Parameters
- providerInvariantName
- String
The provider invariant name that specifies the version of SQL Server Compact Edition that should be used.
Applies to
SqlCeConnectionFactory(String, String, String)
Creates a new connection factory with the given DatabaseDirectory and BaseConnectionString properties.
public SqlCeConnectionFactory (string providerInvariantName, string databaseDirectory, string baseConnectionString);
new System.Data.Entity.Infrastructure.SqlCeConnectionFactory : string * string * string -> System.Data.Entity.Infrastructure.SqlCeConnectionFactory
Public Sub New (providerInvariantName As String, databaseDirectory As String, baseConnectionString As String)
Parameters
- providerInvariantName
- String
The provider invariant name that specifies the version of SQL Server Compact Edition that should be used.
- databaseDirectory
- String
The path to prepend to the database name that will form the file name used by SQL Server Compact Edition when it creates or reads the database file. An empty string means that SQL Server Compact Edition will use its default for the database file location.
- baseConnectionString
- String
The connection string to use for options to the database other than the 'Data Source'. The Data Source will be prepended to this string based on the database name when CreateConnection is called.
Applies to
Entity Framework