What are the "Navigation Properties" in this data model for?
        Posted  
        
            by d03boy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by d03boy
        
        
        
        Published on 2010-06-07T02:46:55Z
        Indexed on 
            2010/06/07
            2:52 UTC
        
        
        Read the original article
        Hit count: 461
        
asp.net-mvc-2
|data-modeling
I've been wondering how to properly set up many-to-many relationships in ASP.NET MVC 2 using Linq2Sql for quite some time now. I found this blog post that seems to have a similar model layout as mine.
If you take a look at the first screenshot showing the data model you can see that each model has "Navigation Properties" at the bottom of it. What exactly is this and why don't my models have them? I have the proper foreign keys put in to place. Most specifically, I am looking at the relationship between the Article and Category models since that is the only many-to-many relationship that I see and that's what I'm trying to model.
Obviously I use an intermediary joining table between these two tables but I am having trouble understanding the proper methodology for modeling that relationship and I'm not finding this information anywhere on The Google.
© Stack Overflow or respective owner