实体协会
我开始阅读实体框架书籍。 本书的第一部分描述了实体和对象的相似点和不同点。 它写道:
每个实体都与 其他实体。
与其他实体的关联是什么意思?是这样的关系吗? 在我的语言中,关联意味着诸如社区之类的东西(!)。 所以我不明白这是什么意思。
i started to read Entity Framework Book.
in first part of book it describes entity and object similarities and differents.
it writes :
Each entity has associations with
other entities.
what is the meaning of associations with other entities ? is that like relation ?
associations in my language means something like community(!).
so i can't Understand what does it mean.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这意味着关系。每个实体都可以与其他实体有关联/关系,这允许一些高级概念,例如通过单个查询加载相关实体、构建复杂查询或按需加载相关实体。
示例:
这里我们有两个以一对多关系相关的实体。两个实体都具有其相关实体的导航属性。
Yes it means relation. Each entity can have association / relation to other entities which allows some advanced concepts like loading related entities by single query, building complex queries or loading realted entities on demand.
Example:
Here we have two entities related in one-to-many relation. Both entities have navigation property to their related entities.