如何从DataBase中导航属性名称 [英] How To Maap Navigation Property Name From DataBase

查看:67
本文介绍了如何从DataBase中导航属性名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有桌子A& B互相反对A有BId而B有AId为Forgien Key。当我生成EDM时,每个表中都会出现2个导航属性。在表A B& B1和B A& A1中。我想在描述数据库时命名这些属性。在AB中作为BForA和B1作为BFromA

I Have To Tables A & B both refring each other A has BId and B has AId as Forgien Key. When I generate EDM there appears 2 Navigation Properties in Each Table . In table A B&B1 and in B A&A1 . I Want To Name these properties when desgiening the database.Like In A B as BForA and B1 as BFromA

推荐答案

嗨*,

在模型中,您可以更改名称。只需选择属性,打开"属性"窗口(F4)并输入名称。

Hi *,

in model you can change the names. Just select the property, open Properties window (F4) and chnage the name.


这篇关于如何从DataBase中导航属性名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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