Condividi tramite


Metodo DbInterceptionContext.WithDbContext

[This page is specific to the Entity Framework version 6.0 Beta. The latest version is available as the 'Entity Framework' NuGet package. For more information, see Entity Framework Releases and Versioning.]

Spazio dei nomi  System.Data.Entity.Infrastructure.Interception
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Function WithDbContext ( _
    context As DbContext _
) As DbInterceptionContext
'Utilizzo
Dim instance As DbInterceptionContext 
Dim context As DbContext 
Dim returnValue As DbInterceptionContext 

returnValue = instance.WithDbContext(context)
public DbInterceptionContext WithDbContext(
    DbContext context
)
public:
DbInterceptionContext^ WithDbContext(
    DbContext^ context
)
member WithDbContext : 
        context:DbContext -> DbInterceptionContext
public function WithDbContext(
    context : DbContext
) : DbInterceptionContext

Parametri

Valore restituito

Tipo: System.Data.Entity.Infrastructure.Interception.DbInterceptionContext

Vedere anche

Riferimento

DbInterceptionContext Classe

Spazio dei nomi System.Data.Entity.Infrastructure.Interception