CoreStrings.InvalidReplaceService(Object, Object) Method

Definition

A call was made to '{replaceService}', but Entity Framework is not building its own internal service provider. Either allow Entity Framework to build the service provider by removing the call to '{useInternalServiceProvider}', or build replacement services into the service provider before passing it to '{useInternalServiceProvider}'.

C#
public static string InvalidReplaceService (object replaceService, object useInternalServiceProvider);
C#
public static string InvalidReplaceService (object? replaceService, object? useInternalServiceProvider);

Parameters

replaceService
Object
useInternalServiceProvider
Object

Returns

Applies to

Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0