概念类型中的成员数...与对象端类型上的成员数不匹配 [英] The number of members in the conceptual type ... does not match with the number of members on the object side type

查看:249
本文介绍了概念类型中的成员数...与对象端类型上的成员数不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在大型项目中使用Entity Framework。我们的应用程序支持使用不同版本的应用程序的多个客户。只要我们只有一个版本的基于实体框架的实体程序集部署在GAC中,一切都很好。一旦我们在GAC中放置了较新的(扩展)版本的程序集,旧的应用程序版本将不再起作用并导致错误消息"...的数量"。如果我收回较新的版本,一切都很好,应用程序再次工作。我们已经为每个程序集版本定义了具有完全限定程序集名称的专用连接字符串。

如果我只安装了较新的程序集版本并且之后安装了较旧的程序集版本,我也可以重现此错误。然后我再次得到同样的错误。然后我删除旧的汇编版本,一切都有效。

任何想法???

亲切的问候

Chrischi

解决方案

你好Chrischi,

 

欢迎来到ADO.NET实体框架和LINQ to Entities论坛!

< span style ="font-family:Calibri"> 

< span style ="font-family:Calibri">它很奇怪。   该异常表示实体类型编号与EDM元数据概念类型不匹配。  你能来吗?请告诉我们您在哪里存储EDM的CSDL元数据?    在汇编资源或单独的文件中?  ;  您如何参考GAC程序集?  

 

如果方便您将其变成一个小型演示项目,您是否介意向我发送项目和程序集以供进一步调查?   我的邮件地址是 v-micsun@microsoft.com     非常感谢!

 

周末愉快!

 

 

最好的问候,

Lingzhi Sun

MSDN用户支持 在论坛

如果您对我们的支持有任何反馈,请联系 < span style ="font-family:" Verdana","sans-serif";颜色:黑色; font-size:10pt"> msdnmg@microsoft.com


I'm using Entity Framework in a large project. Our application supports mulitple customers using differnt versions of the application. As long as we have only one version of our Entity Framework based entities assembly deployed in GAC everything is fine. As soon as we also place a newer (extended) version of our assembly in GAC the older application version doesn't work any longer and causes the error message "The number of...". If I retract the newer version everything is fine again and the application works again. We've defined dedicated connectionstrings with fully qualified assembly names per assembly version.

I can also reproduce this error if I only have the newer assembly version installed and afterwards install the older assembly version. Then I get the same error again. Also then I delete the older assembly version and everything works again.

Any idea???

Kind Regards

Chrischi

解决方案

Hello Chrischi,

 

Welcome to ADO.NET Entity Framework and LINQ to Entities forum!

 

It’s strange.  The exception indicates that the entity type number does not match the EDM metadata conceptual types. Could you please tell us where do you store the EDM’s CSDL metadata?   In the assembly’s resource or in separate file?  How do you refer to the GAC assembly?  

 

If it is convenient for you to make it into a small demo project, would you mind sending me the project and assemblies for further investigation?  My mail address is v-micsun@microsoft.com.   Thanks a lot!

 

Have a nice weekend!

 

 

Best Regards,

Lingzhi Sun

MSDN Subscriber Supportin Forum

If you have any feedback on our support, please contactmsdnmg@microsoft.com


这篇关于概念类型中的成员数...与对象端类型上的成员数不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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