TransactionHandler.ConnectionStringSetting 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
可在派生类中实现。
命名空间: System.Data.Entity.Infrastructure
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
Public Overridable Sub ConnectionStringSetting ( _
connection As DbConnection, _
interceptionContext As DbConnectionPropertyInterceptionContext(Of String) _
)
用法
Dim instance As TransactionHandler
Dim connection As DbConnection
Dim interceptionContext As DbConnectionPropertyInterceptionContext(Of String)
instance.ConnectionStringSetting(connection, _
interceptionContext)
public virtual void ConnectionStringSetting(
DbConnection connection,
DbConnectionPropertyInterceptionContext<string> interceptionContext
)
public:
virtual void ConnectionStringSetting(
DbConnection^ connection,
DbConnectionPropertyInterceptionContext<String^>^ interceptionContext
)
abstract ConnectionStringSetting :
connection:DbConnection *
interceptionContext:DbConnectionPropertyInterceptionContext<string> -> unit
override ConnectionStringSetting :
connection:DbConnection *
interceptionContext:DbConnectionPropertyInterceptionContext<string> -> unit
public function ConnectionStringSetting(
connection : DbConnection,
interceptionContext : DbConnectionPropertyInterceptionContext<String>
)
参数
- connection
类型:System.Data.Common.DbConnection
连接。
- interceptionContext
类型:DbConnectionPropertyInterceptionContext<String>
与调用关联的上下文信息。
请参阅
参考
System.Data.Entity.Infrastructure 命名空间
ConnectionStringSetting(DbConnection, DbConnectionPropertyInterceptionContextString)