EFCore: How to Access DBSets Programmatically For Seed Purposes

前端 未结 0 975
终归单人心
终归单人心 2020-11-29 00:25

In EFCore 3.1, I would like to seed all DBSets with data programmatically with a Seed() extension method. The Seed() method works beautifully in a non-dynamic situation.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题