/// <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; }
public ApplicationUserStore(ApplicationDbContext context) { if (context == null) { throw new ArgumentNullException("context"); } Context = context; _userStore = new ApplicationEntityStore <ApplicationUser>(context); }