UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.DisposeContext Property
Gets or sets whether to dispose the DbContext during Dispose.
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
'Declaration
Public Property DisposeContext As Boolean
Get
Set
'Usage
Dim instance As UserStore
Dim value As Boolean
value = instance.DisposeContext
instance.DisposeContext = value
public bool DisposeContext { get; set; }
public:
property bool DisposeContext {
bool get ();
void set (bool value);
}
member DisposeContext : bool with get, set
function get DisposeContext () : boolean
function set DisposeContext (value : boolean)
Property Value
Type: System.Boolean
true if to dispose DbContext; otherwise, false.
See Also
Reference
UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace