实体框架中导航属性的用途是什么? [英] What is the use of navigation properties in entity framework ?

查看:198
本文介绍了实体框架中导航属性的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实体框架中导航属性的用途是什么?并由实体框架自行生成类.这意味着如果我的数据库中有一个名为customers的表,那么实体框架是否会创建一个名为customers的类?

感谢

What is the use of navigation properties in entity framework ? and does entity framework generate the classes by itself. Which means if i have a table named customers in my database, does the entity framework creates a class named customers?

Thanks

推荐答案

导航属性用于导航数据中的关系.参见:
- ADO.NET实体框架概述 [导航属性 [
Navigation properties are used to navigate through relations in data. See:
- ADO.NET Entity Framework Overview[^]
- Navigation Properties[^]


这篇关于实体框架中导航属性的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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