使用ADO.NET DbContext Generator出现错误—Unable to locate file
2012-04-01 10:50
501 查看
如果在使用ADO.NET DbContext Generator生成类时出现如下错误:
这是因为没有正确使用,使用ADO.NET DbContext Generator生成类的正确方法是:
1)打开*.edmx文件,右键单击,选择“添加代码生成项”:
![](http://images.cnblogs.com/cnblogs_com/leolis/201204/201204011049549372.png)
2)然后选择“代码”—“ADO.NET DbContext Generator”,自己再命一个名称后点击“添加”:
![](http://images.cnblogs.com/cnblogs_com/leolis/201204/201204011049569141.png)
现在就正确的生成了所有的简化类。
Running transformation: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Unable to locate file |
1)打开*.edmx文件,右键单击,选择“添加代码生成项”:
![](http://images.cnblogs.com/cnblogs_com/leolis/201204/201204011049549372.png)
2)然后选择“代码”—“ADO.NET DbContext Generator”,自己再命一个名称后点击“添加”:
![](http://images.cnblogs.com/cnblogs_com/leolis/201204/201204011049569141.png)
现在就正确的生成了所有的简化类。
相关文章推荐
- 在使用eclipse 运行 maven install的时候,出现这个错误:Unable to locate the Javac Compiler in:…
- 在使用eclipse 运行 maven install的时候,出现这个错误:Unable to locate the Javac Compiler in:…
- 使用PHP中的库函数file_get_contents时出现Unable to find the wrapper "https"错误解决
- 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- 使用百度地图出现Unable to execute dex: Multiple dex files define Lcom/baidu/a/a/a/a错误解决方法
- 升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误
- 升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误
- 升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误
- 安装Eclipse出现“The Eclipse executable launcher was unable to locate its companion shared library”错误
- 使用ant时出现 Unable to locate tools.jar 解决办法
- 使用Lomboz3生成Struts2项目后运行Tomcat出现Unable to load bean错误的解决
- ubuntu 下修复使用sudo命令后出现主机名字不能解析的错误:Fix Ubuntu sudo Error:unable to resolve host
- ClearCase使用时,出现“unable to contact aldb_server on host”错误
- 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- 出现错误:Unable to load configuration. - action - file:/E:/Java/Tomcat7.0/apache-tomcat-7.0.68-windows-x64/apache-tomcat-7.0.68/webapps/SSH2Integrate/WEB-INF/classes/struts.xml:8:43
- Q: 自定义控件时出现错误 unable to start activity ... android.view.InflateException: Binary XML file lin ...
- 出现 malformed or corrupted AST file: 'Unable to load module ".pcm": module file out of date'错误
- 使用TC调试c语言的时候运行时出现“unable to open input file 'cos.obj'
- 升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误