AddDbContext method for DI
GitHub Issue 839: Renamed UpdatedDatabase to ApplyMigrations and GenerateUpdateDatabaseSql to ScriptMigrations.