protected virtual void Dispose(bool disposing) { if (!disposedValue && dbContext != null) { dbContext.Dispose(); dbContext = null; disposedValue = true; } }
public StoriesDbContext InitContext() { return(dbContext ?? (dbContext = new StoriesDbContext())); }