English 中文(简体)
不允许实体框架4升级问题,不允许以姓名和属性进行联络
原标题:Entity Framework 4 upgrade issue, Loading by both name and attribute is not allowed

我刚刚将我的项目从2版升级为2版。 4. 更确切地说,我将该项目从2008年科索沃统计局改为2010年科索沃统计局。 我之所以这样做,是因为我需要新的EF4特征。 我正在处理一个问题,当时我正在收到这一错误信息:

The types in the assembly XXX cannot be loaded because the assembly contains the EdmSchemaAttribute, and the closure of types is being loaded by name. Loading by both name and attribute is not allowed.

在我玩 playing后,我发现,原因为<条形码>。 我几乎没有什么职能,可以采取反对和制定<代码>。 缩略语 GetObjectByKey。 如果我改为<条码>context.ObjectName.FirstOrDefault(x =>x.id=检索Id),那么我再不犯错误。

我在把我的所有法典更新到能够发挥作用的文本中,但我很想知道是否有任何人知道这样做的理由? 或者,这是否表明与我的法典存在一些根本性的问题;也许我的EDM在转换过程中会 m?

问题回答

贵实体是否真正称为“目标?” 这可能是问题。 拥有一个名称与《南极海生委》类型相同的实体:





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!