AddDbContext method for DI

It is not clear what service to query for, so I coded this such that it starts with IOptionsAccessor<DbContextOptions<T>> and falls back to DbContextOptions<T>, IOptionsAccessor<DbContextOptions>, DbContextOptions.