我遇到了EF生成的edmx文件的问题,其中SSDL使用self而不是完全限定名称,但CSDL和MSL使用FQN。
这是代码的快照 SSDL:
<Association Name="FK_CustomerOrders">
<End Role="Customers"
Type="self.Customers" Multiplicity="1">
<OnDelete Action="Cascade" />
</End>
</Association>
CSDL和MSL:
<Association Name="FK_CustomerOrders">
<End Role="Customers"
Type="ExampleModel.Store.Customers" Multiplicity="1">
<OnDelete Action="Cascade" />
</End>
</Association>
在我们将解决方案从VS 2010迁移到VS 2013后,这种情况正在发生