SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Association direction

    While making a LINQ to SQL class in Visual Studio, I was thinking that I don't really know the difference in the association direction.

    Can anyone explain the difference between the two associations below:




    The only difference is the direction of the association between book_name.language and language.languageID.

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,347
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    that's weird, that there are two different relationship diagram styles for what looks like the same relationship (if you just look at the column names)

    have you generated the DDL for the two different styles? i bet there'll be no difference...
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by r937 View Post
    ... have you generated the DDL for the two different styles? i bet there'll be no difference...
    No, I just always do it a certain way and was wondering if there was any difference when you change the direction.

  4. #4
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    It does affect the order of the Linq to Sql classes necessary in the code. Other than that I don't find a difference.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •