"An attempt was made to use the model while it was being created. A DbContext instance cannot be used inside OnModelCreating in any way that makes use of the model that is being created."
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/818/viewspace-3142908/ ,如需转载,请注明出处,否则将追究法律责任。