Share via


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

RegisterInfoMessageHandler(DbConnection, Action<String>)

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

Applies to