Share via


EntityFrameworkServicesBuilder.TryAddProviderSpecificServices Method

Definition

Database providers should call this method for access to the underlying ServiceCollectionMap such that provider-specific services can be registered. Note that implementations of Entity Framework services should be registered directly on the EntityFrameworkServicesBuilder and not through this method.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder TryAddProviderSpecificServices (Action<Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap> serviceMap);
abstract member TryAddProviderSpecificServices : Action<Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap> -> Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder
override this.TryAddProviderSpecificServices : Action<Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap> -> Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder
Public Overridable Function TryAddProviderSpecificServices (serviceMap As Action(Of ServiceCollectionMap)) As EntityFrameworkServicesBuilder

Parameters

serviceMap
Action<ServiceCollectionMap>

The underlying map to which provider services should be added.

Returns

This builder, such that further calls can be chained.

Remarks

See Implementation of database providers and extensions for more information and examples.

Applies to