首页 > 其他 > 详细

Can't create component 'xxx.xxx.xxx' as it has dependencies to be satisfied

时间:2017-08-07 14:24:50      阅读:573      评论:0      收藏:0      [点我收藏+]

问题描述:

Can‘t create component ‘xxx.xxx.xxx‘ as it has dependencies to be satisfied.

技术分享


 问题原由:

没有对新建的实体映射类创建对应的数据库表。

执行add-migration  xxx      update-database

在add-migration前一定要在DbContext中去配置即将映射的实体。搞忘了

技术分享

 

Can't create component 'xxx.xxx.xxx' as it has dependencies to be satisfied

原文:http://www.cnblogs.com/senyier/p/7298847.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!