DbConnectionDispatcher.SetConnectionString Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Wysyła i ConnectionStringSet(DbConnection, DbConnectionPropertyInterceptionContext<String>) do wszystkich zarejestrowanych IDbConnectionInterceptorConnectionStringSetting(DbConnection, DbConnectionPropertyInterceptionContext<String>) przedDbInterception/po ustawieniu .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))
Parametry
- connection
- DbConnection
Połączenie, na którym zostanie wykonana operacja.
- interceptionContext
- DbConnectionPropertyInterceptionContext<String>
Informacje o kontekście wykonywanego wywołania, w tym wartość, która ma zostać ustawiona.