RelationalDatabaseFacadeExtensions.GetConnectionString(DatabaseFacade) 方法

定义

获取为此 DbContext配置的基础连接字符串。

public static string GetConnectionString (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
public static string? GetConnectionString (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member GetConnectionString : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> string
<Extension()>
Public Function GetConnectionString (databaseFacade As DatabaseFacade) As String

参数

databaseFacade
DatabaseFacade

DatabaseFacade上下文的 。

返回

连接字符串。

注解

有关详细信息 和示例,请参阅连接和连接字符串

适用于