DbConnectionDispatcher.SetConnectionString 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.
Sends ConnectionStringSetting(DbConnection, DbConnectionPropertyInterceptionContext<String>) and ConnectionStringSet(DbConnection, DbConnectionPropertyInterceptionContext<String>) to any IDbConnectionInterceptor registered on DbInterception before/after setting ConnectionString.
public virtual void SetConnectionString (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<string> interceptionContext);
abstract member SetConnectionString : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<string> -> unit
override this.SetConnectionString : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<string> -> unit
Public Overridable Sub SetConnectionString (connection As DbConnection, interceptionContext As DbConnectionPropertyInterceptionContext(Of String))
Parameters
- connection
- DbConnection
The connection on which the operation will be executed.
- interceptionContext
- DbConnectionPropertyInterceptionContext<String>
Information about the context of the call being made, including the value to be set.
Applies to
Entity Framework