_contextFactory.CreateDbContext() not working
Advertisements I use these statements: using (var factory = _contextFactory.CreateDbContext()) { var itemsQueryable = factory.Set<AppUser>().AsQueryable(); var result = itemsQueryable?.Where(c => c.AccessFailedCount <= maxMedals); … } this is a factory of my identityContext, but when I run the code, there is an error: System.ObjectDisposedException: Cannot access a disposed context instance. A common cause of this error… Read More _contextFactory.CreateDbContext() not working