本文介绍了多对多关系表的图表未出现在edmx中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用数据库优先方法.我从数据库生成了edmx.但是,具有多对多关系的表的图不会显示在生成的edmx中.
I am using a databse first method. I generated edmx from the database. But diagrams for the tables which are in many to many relationships do not display in the generated edmx.
推荐答案
如果多对多"查找表仅由外键组成,而没有其他字段,则该表不会作为表显示在edmx文件中.但是它将显示在每个表的导航属性"下.
If your Many to many lookup table consists of just Foreign Keys and no other fields, then it will not show up in your edmx file as a Table. It will show up under Navigation Properties of each table though.
这篇关于多对多关系表的图表未出现在edmx中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!