在实体框架中如何做一对多关系,多对多关系? [英] how to do one to many relationship, many to many relationship in entity framework?

查看:110
本文介绍了在实体框架中如何做一对多关系,多对多关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,我是实体框架的新手,我使用的是mvc4,我想在我的实体之间做一对多和多对多的关系。请帮帮我。在此先感谢。

hello friends, i am new to entity framework, i am using mvc4 and i want to do one to many and many to many relationship between my entities. Please help me out. Thanks in advance.

推荐答案

基础研究怎么样? :(

看看这篇文章的例子: http://visualstudiomagazine.com/articles/2013/06/01 /handle-relationships-in-entity-framework.aspx [ ^ ]



[更新]

一些c#例子.. 。来自谷歌:

http://msdn.microsoft.com/en -us / data / gg685494.aspx [ ^ ]

使用Entity Fr在MVC4中生成多对多关系amework [ ^ ]

http://mikeyhogarth.wordpress.com/2011/02/05/implementing-many-to-many-relationships-in-mvc3/ [ ^ ]

...依此类推......
What about some basic research? :(
Look at this article for example: http://visualstudiomagazine.com/articles/2013/06/01/handle-relationships-in-entity-framework.aspx[^]

[update]
Some c# examples... right from google:
http://msdn.microsoft.com/en-us/data/gg685494.aspx[^]
Generating Many to Many Relation in MVC4 using Entity Framework[^]
http://mikeyhogarth.wordpress.com/2011/02/05/implementing-many-to-many-relationships-in-mvc3/[^]
...and so on...


这篇关于在实体框架中如何做一对多关系,多对多关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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