SqlCeConnectionFactory Constructor

 

Initializes a new instance of the SqlCeConnectionFactory class.

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

NameDescription
System_CAPS_pubmethodSqlCeConnectionFactory(String)

Creates a new connection factory with empty (default) DatabaseDirectory and BaseConnectionString properties.

System_CAPS_pubmethodSqlCeConnectionFactory(String, String, String)

Creates a new connection factory with the given DatabaseDirectory and BaseConnectionString properties.


SqlCeConnectionFactory Constructor (String)

Creates a new connection factory with empty (default) DatabaseDirectory and BaseConnectionString properties.

public SqlCeConnectionFactory(
	string providerInvariantName
)

Parameters

providerInvariantName
Type: System.String

The provider invariant name that specifies the version of SQL Server Compact Edition that should be used.


SqlCeConnectionFactory Constructor (String, String, String)

Creates a new connection factory with the given DatabaseDirectory and BaseConnectionString properties.

public SqlCeConnectionFactory(
	string providerInvariantName,
	string databaseDirectory,
	string baseConnectionString
)

Parameters

providerInvariantName
Type: System.String

The provider invariant name that specifies the version of SQL Server Compact Edition that should be used.

databaseDirectory
Type: System.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
Type: System.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.