实体框架5 + EntityDataSource + ASP.NET + .NET 4.0找不到的CLR类型 [英] Entity Framework 5 + EntityDataSource + ASP.NET + .NET 4.0 Could not find the CLR type for

查看:293
本文介绍了实体框架5 + EntityDataSource + ASP.NET + .NET 4.0找不到的CLR类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建使用实体框架5.0的ORM。我加入ORM的引用,我的ASP.NET应用程序。我试图用一个EntityDataSource来填充一个DropDownList。我可以没有任何问题配置EntityDataSource。不过,我想不出设定值的数据字段和DropDownBox的使用向导,如果我点击Refersh模式按钮(在数据源配置向导),我收到以下错误,架构中的文本不能因为从EntityDataSource以下错误的决定:找不到德CLR类型

I created an ORM using Entity Framework 5.0. I added a reference to the ORM to my ASP.NET application. I am trying to use a EntityDataSource to populate a DropDownList. I could configure the EntityDataSource without any problem. However I couldnt set the data fields for the value and the text of the DropDownBox using the wizard, if I click the "Refersh Schema" button (in the Data Source Configuration Wizard), I am getting the following error, "The schema could not be determined because of the following error from the EntityDataSource: Could not find teh CLR type for "

推荐答案

试试这个:更改code生成策略模型为默认值。删除.TT文件。保存,清洁和重建。

Try this: Change the Code Generation Strategy for your model to Default. Delete .tt files. Save, clean and rebuild.

这篇关于实体框架5 + EntityDataSource + ASP.NET + .NET 4.0找不到的CLR类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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