Many to Many relation with Entity Framework
2013-04-13 17:36
441 查看
In this article I mainly concentrated on Many-To-Many Relationship to perform CRUD operations using EF & Linq. I have taken three tablesCustomer,
Product, and CustomerProduct. I am performing Insert, Update, and Delete operations using EF and LINQ.
Database Diagram:
![](http://www.codeproject.com/KB/webforms/396321/DB_ManyToMany.jpg)
Entity Framework ER diagram (Which shows the relation between Customer & Product (in codeModel1.edmx):
![](http://www.codeproject.com/KB/webforms/396321/ER_Diagram.jpg)
from http://www.codeproject.com/Articles/396321/Many-to-Many-relation-with-Entity-Framework-in-ASP
Product, and CustomerProduct. I am performing Insert, Update, and Delete operations using EF and LINQ.
Database Diagram:
![](http://www.codeproject.com/KB/webforms/396321/DB_ManyToMany.jpg)
Entity Framework ER diagram (Which shows the relation between Customer & Product (in codeModel1.edmx):
![](http://www.codeproject.com/KB/webforms/396321/ER_Diagram.jpg)
from http://www.codeproject.com/Articles/396321/Many-to-Many-relation-with-Entity-Framework-in-ASP
相关文章推荐
- Entity Framework Many to Many Relation Mapping(Entity Framework多对多关系映射)
- Entity Framework Code-First(12):Configure One-to-Many
- Entity Framework Code-First(13):Configure Many-to-Many
- How to execute a Stored Procedure with Entity Framework Code First
- Entity framework and many to many queries unusable?
- [转]Upgrading to Async with Entity Framework, MVC, OData AsyncEntitySetController, Kendo UI, Glimpse & Generic Unit of Work Repository Framework v2.0
- Comparision Linq toSQL with ADO.net Entity Framework
- Is it possible to run native sql with entity framework?
- Many To Many Mappings in Entity Framework
- 【FAQ Fix】 JPA Double insert with @OneToMany and CASCADE.ALL
- Entity Framework With Oracle(转)
- Export Grid Data To Excel In Advance Kendo UI Using MVC WEB API And Entity Framework
- 【文档摘要】J2EE Persistence - Controlling Concurrent Access to Entity Data with Locking
- 关于The reference to entity "characterEncoding" must end with the ';' delimiter. org.xml.sax.SAXParseE
- ASP.NET MVC with Entity Framework and CSS一书翻译系列文章之目录导航
- The reference to entity "characterEncoding" must end with the ';' delimiter.
- [转]Entity Framework vs. LINQ to SQL
- (转)Using LINQPad with Entity Framework
- Inner join and Left Outer Joins in LINQ with Entity Framework
- java.lang.IllegalArgumentException: attempt to create delete event with null entity