EFCore使用dbfirst时,报错Could not load assembly 'xxx'. Ensure it is referenced by the startup project 'xxx'.

Scaffold-DbContext命令生成实体时报错,原因是项目是32位的,可能是调用了64的命令,解决方法是临时将项目改为64位
posted @ 2025-05-07 17:05  ayatip  阅读(36)  评论(0)    收藏  举报