EntityConnectionStringBuilder.ProviderConnectionString 属性
定义
获取或设置提供程序特定的内部连接字符串。Gets or sets the inner, provider-specific connection string.
public:
property System::String ^ ProviderConnectionString { System::String ^ get(); void set(System::String ^ value); };
public string ProviderConnectionString { get; set; }
member this.ProviderConnectionString : string with get, set
Public Property ProviderConnectionString As String
属性值
提供程序特定的内部连接字符串。The inner, provider-specific connection string.
注解
设置提供程序特定的连接字符串之前,将不对其关键字/值对的有效性进行检查。The provider-specific connection string is not checked for valid keyword/value pairs before it is set. 开发人员可以使用强类型连接字符串生成器类或 DbConnectionStringBuilder 类创建连接字符串。Developers can create connection strings by using either a strongly typed connection string builder class, or they can use the DbConnectionStringBuilder class. DbConnectionStringBuilder 不会对关键字/值对的有效性进行检查。The DbConnectionStringBuilder performs no checks for valid keyword/value pairs. 因此,使用此类可能会创建出无效的连接字符串。Therefore, it is possible using this class to create invalid connection strings.
有关有效的关键字/值语法,请参见 ConnectionString。For valid keyword/value syntax, see ConnectionString.