SqlCeProviderServices Class

Definition

The ProviderServices object for the Sql CE provider

public sealed class SqlCeProviderServices : System.Data.Entity.Core.Common.DbProviderServices
type SqlCeProviderServices = class
    inherit DbProviderServices
Public NotInheritable Class SqlCeProviderServices
Inherits DbProviderServices
Inheritance
SqlCeProviderServices

Remarks

Note that instance of this type also resolves additional provider services for Microsoft SQL Server Compact Edition when this type is registered as an EF provider either using an entry in the application's config file or through code-based registration in DbConfiguration. The services resolved are: Requests for IDbConnectionFactory are resolved to a Singleton instance of SqlCeConnectionFactory to create connections to SQL Compact by default. Requests for MigrationSqlGenerator for the invariant name "System.Data.SqlServerCe.4.0" are resolved to SqlCeMigrationSqlGenerator instances to provide default Migrations SQL generation for SQL Compact.

Fields

Instance

Singleton object;

ProviderInvariantName

This is the well-known string using in configuration files and code-based configuration as the "provider invariant name" used to specify Microsoft SQL Server Compact Edition 4.0 for ADO.NET and Entity Framework provider services.

Methods

AddDependencyResolver(IDbDependencyResolver)

Adds an IDbDependencyResolver that will be used to resolve additional default provider services when a derived type is registered as an EF provider either using an entry in the application's config file or through code-based registration in DbConfiguration.

(Inherited from DbProviderServices)
CloneDbCommand(DbCommand)

See issue 2390 - cloning the DesignTimeVisible property on the DbCommand can cause deadlocks. So here allow sub-classes to override.

(Inherited from DbProviderServices)
CloneDbConnection(DbConnection)

Clones the connection.

(Inherited from DbProviderServices)
CloneDbConnection(DbConnection, DbProviderFactory)

Clones the connection.

(Inherited from DbProviderServices)
CreateCommandDefinition(DbCommand)

Create the default DbCommandDefinition object based on the prototype command This method is intended for provider writers to build a default command definition from a command. Note: This will clone the prototype

(Inherited from DbProviderServices)
CreateCommandDefinition(DbCommandTree)

Create a Command Definition object given a command tree.

(Inherited from DbProviderServices)
CreateCommandDefinition(DbProviderManifest, DbCommandTree)

Creates command definition from specified manifest and command tree.

(Inherited from DbProviderServices)
CreateDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

Creates a database indicated by connection and creates schema objects (tables, primary keys, foreign keys) based on the contents of storeItemCollection.

(Inherited from DbProviderServices)
CreateDatabaseScript(String, StoreItemCollection)

Generates a data definition language (DDL script that creates schema objects (tables, primary keys, foreign keys) based on the contents of the StoreItemCollection parameter and targeted for the version of the database corresponding to the provider manifest token.

(Inherited from DbProviderServices)
CreateDbCommandDefinition(DbProviderManifest, DbCommandTree)

Creates a command definition object for the specified provider manifest and command tree.

(Inherited from DbProviderServices)
DatabaseExists(DbConnection, Nullable<Int32>, Lazy<StoreItemCollection>)

Returns a value indicating whether a given database exists on the server.

(Inherited from DbProviderServices)
DatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection)

Returns a value indicating whether a given database exists on the server.

(Inherited from DbProviderServices)
DbCreateDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

Creates a database indicated by connection and creates schema objects (tables, primary keys, foreign keys) based on the contents of a StoreItemCollection.

(Inherited from DbProviderServices)
DbCreateDatabaseScript(String, StoreItemCollection)

Generates a data definition language (DDL) script that creates schema objects (tables, primary keys, foreign keys) based on the contents of the StoreItemCollection parameter and targeted for the version of the database corresponding to the provider manifest token.

(Inherited from DbProviderServices)
DbDatabaseExists(DbConnection, Nullable<Int32>, Lazy<StoreItemCollection>)

Returns a value indicating whether a given database exists on the server.

(Inherited from DbProviderServices)
DbDatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection)

Returns a value indicating whether a given database exists on the server.

(Inherited from DbProviderServices)
DbDeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

Deletes the specified database.

(Inherited from DbProviderServices)
DbGetSpatialServices(String)
Obsolete.

Gets the spatial services for the DbProviderServices.

(Inherited from DbProviderServices)
DeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

Deletes the specified database.

(Inherited from DbProviderServices)
GetDbProviderManifest(String)

When overridden in a derived class, returns an instance of a class that derives from the DbProviderManifest.

(Inherited from DbProviderServices)
GetDbProviderManifestToken(DbConnection)

Returns provider manifest token for a given connection.

(Inherited from DbProviderServices)
GetDbSpatialDataReader(DbDataReader, String)

Gets the spatial data reader for the DbProviderServices.

(Inherited from DbProviderServices)
GetProviderManifest(String)

Returns the provider manifest by using the specified version information.

(Inherited from DbProviderServices)
GetProviderManifestToken(DbConnection)

Returns provider manifest token given a connection.

(Inherited from DbProviderServices)
GetService(Type, Object)

Called to resolve additional default provider services when a derived type is registered as an EF provider either using an entry in the application's config file or through code-based registration in DbConfiguration. The implementation of this method in this class uses the resolvers added with the AddDependencyResolver method to resolve dependencies.

(Inherited from DbProviderServices)
GetServices(Type, Object)

Called to resolve additional default provider services when a derived type is registered as an EF provider either using an entry in the application's config file or through code-based registration in DbConfiguration. The implementation of this method in this class uses the resolvers added with the AddDependencyResolver method to resolve dependencies.

(Inherited from DbProviderServices)
GetSpatialDataReader(DbDataReader, String)

Gets the spatial data reader for the DbProviderServices.

(Inherited from DbProviderServices)
GetSpatialServices(DbProviderInfo)

Gets the spatial services for the DbProviderServices.

(Inherited from DbProviderServices)
GetSpatialServices(String)
Obsolete.

Gets the spatial services for the DbProviderServices.

(Inherited from DbProviderServices)
RegisterInfoMessageHandler(DbConnection, Action<String>)

Registers a handler to process non-error messages coming from the database provider.

SetDbParameterValue(DbParameter, TypeUsage, Object)

Sets the parameter value and appropriate facets for the given TypeUsage.

(Inherited from DbProviderServices)
SetParameterValue(DbParameter, TypeUsage, Object)

Sets the parameter value and appropriate facets for the given TypeUsage.

(Inherited from DbProviderServices)

Applies to