Print Page | Close Window

Many to many Code first

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3499
Printed Date: 13-May-2026 at 4:52am


Topic: Many to many Code first
Posted By: rbautistaole
Subject: Many to many Code first
Date Posted: 15-Jun-2012 at 6:24pm
Hi.
How must I to define many to many relations with and without payload using code first?
 
By the way, i thin that is good idea to open a Subgroup to Code First questions.
 
thanks in advanced.



Replies:
Posted By: sbelini
Date Posted: 18-Jun-2012 at 5:05pm
Hi rbautistaole,
 
I've found several articles on the topic. Here's a few:
 
http://www.codeproject.com/Articles/234606/Creating-a-Many-To-Many-Mapping-Using-Code-First - http://www.codeproject.com/Articles/234606/Creating-a-Many-To-Many-Mapping-Using-Code-First
http://blogs.msdn.com/b/wriju/archive/2011/05/14/code-first-ef-4-1-building-many-to-many-relationship.aspx - http://blogs.msdn.com/b/wriju/archive/2011/05/14/code-first-ef-4-1-building-many-to-many-relationship.aspx
http://stackoverflow.com/questions/7050404/create-code-first-many-to-many-with-additional-fields-in-association-table - http://stackoverflow.com/questions/7050404/create-code-first-many-to-many-with-additional-fields-in-association-table
 
Regards,
   Silvio.


Posted By: rbautistaole
Date Posted: 19-Jun-2012 at 6:17pm
Ok, but do PostSharp decorate the collection properties in a many to many relation with and without payload?
thanks.
 


Posted By: sbelini
Date Posted: 20-Jun-2012 at 12:03pm
Hi rbautistaole,
There is no special PostSharp attribute needed on a many to many relation (with or without payload)
 
Silvio.



Print Page | Close Window