RelationalStrings.NamedConnectionStringNotFound(Object) Method

Definition

A named connection string was used, but the name '{name}' was not found in the application's configuration. Note that named connection strings are only supported when using 'IConfiguration' and a service provider, such as in a typical ASP.NET Core application. See https://go.microsoft.com/fwlink/?linkid=850912 for more information.

C#
public static string NamedConnectionStringNotFound (object name);
C#
public static string NamedConnectionStringNotFound (object? name);

Parameters

name
Object

Returns

Applies to

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