DbConfigurationInterceptionContext Class
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.
Represents contextual information associated with calls into IDbConfigurationInterceptor implementations.
public class DbConfigurationInterceptionContext : System.Data.Entity.Infrastructure.Interception.DbInterceptionContext
type DbConfigurationInterceptionContext = class
inherit DbInterceptionContext
Public Class DbConfigurationInterceptionContext
Inherits DbInterceptionContext
- Inheritance
Remarks
Instances of this class are publicly immutable for contextual information. To add contextual information use one of the With... or As... methods to create a new interception context containing the new information.
Constructors
DbConfigurationInterceptionContext() |
Constructs a new DbConfigurationInterceptionContext with no state. |
DbConfigurationInterceptionContext(DbInterceptionContext) |
Creates a new DbConfigurationInterceptionContext by copying state from the given interception context. Also see Clone() |
Properties
DbContexts |
Gets all the DbContext instances associated with this interception context. (Inherited from DbInterceptionContext) |
IsAsync |
True if the operation is being executed asynchronously, otherwise false. (Inherited from DbInterceptionContext) |
ObjectContexts |
Gets all the ObjectContext instances associated with this interception context. (Inherited from DbInterceptionContext) |
Methods
AsAsync() |
Creates a new DbConfigurationInterceptionContext that contains all the contextual information in this interception context the IsAsync flag set to true. |
Clone() |
Call this method when creating a copy of an interception context in order to add new state to it. Using this method instead of calling the constructor directly ensures virtual dispatch so that the new type will have the same type (and any specialized state) as the context that is being cloned. |
Equals(Object) | Determines whether the specified object is equal to the current object. |
GetHashCode() | Serves as the default hash function. |
GetType() |
Gets the Type of the current instance. |
ToString() | Returns a string that represents the current object. |
WithDbContext(DbContext) |
Creates a new DbConfigurationInterceptionContext that contains all the contextual information in this interception context with the addition of the given DbContext. |
WithObjectContext(ObjectContext) |
Creates a new DbConfigurationInterceptionContext that contains all the contextual information in this interception context with the addition of the given ObjectContext. |
Applies to
Entity Framework