'Declaration
Public Overloads Shared Function RegisterContext( _ ByVal context As System.Data.Entity.DbContext, _ ByVal contextType As System.Type _ ) As System.IDisposable
public static System.IDisposable RegisterContext( System.Data.Entity.DbContext context, System.Type contextType )
Parameters
- context
- An DbContext to set as default.
- contextType
- The type (derived from DbContext) to register the context for.
Return Value
An System.IDisposable to unregister the context.