Entity framework 实体框架-在多个edmx中具有相同的表
我有两个edmx文件。Entity framework 实体框架-在多个edmx中具有相同的表,entity-framework,entity-framework-4,Entity Framework,Entity Framework 4,我有两个edmx文件。 两者都包含表“applicationType”。 这意味着我有两个具有不同名称空间的对象applicationType。 当我尝试从一个查询时 我得到以下错误- "Schema specified is not valid. Errors: \r\nMultiple types with the name 'ApplicationType' exist in the EdmItemCollection in different namespaces. Con
两者都包含表“applicationType”。
这意味着我有两个具有不同名称空间的对象applicationType。 当我尝试从一个查询时
我得到以下错误-
"Schema specified is not valid. Errors: \r\nMultiple types with the name
'ApplicationType' exist in the EdmItemCollection in different namespaces.
Convention based mapping requires unique names without regard to namespace
in the EdmItemCollection.\r\nThe relationship
'myModel.FK_ApplicationAttribute_ApplicationType' was not loaded because the type
'myModel.ApplicationType' is not available.\r\n"}
System.Data.EntityException {System.Data.MetadataException}
有人能建议如何查询吗 如果两个模型位于同一名称空间中,则这些对象的名称必须不同。例如: 模型1-命名空间:myApp-表:applicationType-entityName:applicationType 在第二个模型中,必须使用另一个名称空间或另一个entityName