Esempio n. 1
0
 /// <summary>
 ///     If disposing, calls dispose on the Context.  Always nulls out the Context
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (DisposeContext && disposing && Context != null)
     {
         Context.Dispose();
     }
     _disposed  = true;
     Context    = null;
     _userStore = null;
 }
Esempio n. 2
0
        public ApplicationUserStore(ApplicationDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            Context    = context;
            _userStore = new ApplicationEntityStore <ApplicationUser>(context);
        }