Use Code First migrate the database to set seed

https://docs.microsoft.com/zh-cn/aspnet/web-api/overview/data/using-web-api-with-entity-framework/part-3

Guess you like

Origin www.cnblogs.com/w123w/p/10963563.html