CoreStrings.NoProviderConfiguredFailedToResolveService(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Unable to resolve service for type '{service}'. This is often because no database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
public static string NoProviderConfiguredFailedToResolveService (object service);
public static string NoProviderConfiguredFailedToResolveService (object? service);
static member NoProviderConfiguredFailedToResolveService : obj -> string
Public Shared Function NoProviderConfiguredFailedToResolveService (service As Object) As String
Parameters
- service
- Object
Returns
Applies to
Entity Framework