in src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/shared/ObservableMigrations.kt [16:32]
fun initBinding() {
this.bind(dbContext) {
if (it != null) {
val migrationsProjectId = migrationsProject.value!!.id
val dbContextName = it.fullName
val migrations = intellijProject.solution.riderEfCoreModel.getAvailableMigrations.runUnderProgress(
MigrationsIdentity(migrationsProjectId, dbContextName), intellijProject, EfCoreUiBundle.message("progress.title.loading.available.migrations"),
isCancelable = true,
throwFault = true
)
migrations ?: listOf()
} else {
listOf()
}
}
}