'Declaration Public Overloads Shared Function RegisterContext( _ ByVal context As DbContext, _ ByVal contextType As Type _ ) As IDisposable
public static IDisposable RegisterContext( DbContext context, 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.