为什么当我想要使用EF电动工具查看我的模型我得到错误? [英] why when i want use EF Power tools for view my model i get error?

查看:128
本文介绍了为什么当我想要使用EF电动工具查看我的模型我得到错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用EF代码,我在vs2010中通过EF 4.x DbContext Fluent Generator for c#扩展生成我的模型。但是当我想通过EF电源工具查看我的实体模型时,我会收到以下错误:序列不包含匹配的元素。有没有任何想法?

Im using EF Code first and i generate my model by "EF 4.x DbContext Fluent Generator for c#" extension in vs2010. but when i want to view my Entity model via EF Power tools i get this error:"Sequence Contains no matching element". is there any idea?

推荐答案

这太迟了,不知道这是否有帮助,但对于别人和历史原因

It's a bit too late and not sure if this would help but for others and historic reasons...


我有同样的问题(使用Beta 3 - 和.NET 4/2010 / EF5等) -
解决方案比较简单。

我刚将项目从解决方案目录移出到解决方案的根目录

我从处理迁移和PM控制台中学到了这个技巧 - 如果你有一个lib实体) - 和您的启动/可执行文件 - 而这两者中的任何一个在某个地方的解决方案中。

I 'learned' that trick from dealings with 'migrations' and PM console - it wouldn't work if you have a lib (entities) - and your startup/executable - while any of the two is in a solution dir somewhere.

这篇关于为什么当我想要使用EF电动工具查看我的模型我得到错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆