linq 2 sql dynamic data bug?

Last post 12-04-2009 4:23 PM by sjnaughton. 1 replies.

Sort Posts:

  • linq 2 sql dynamic data bug?

    12-04-2009, 6:55 AM

    hi,

    i have a many to many relationship between 2 entities in my datamodel.

    so i have a simple link entity with just the keys of the other entities....

    [Beer] beerid , beername

    [Person] personid, personname

    [LinkEntity] personid, beerid

    using the entity framework it handles this well by hiding the link entity and implementing the relationship but in LINQ 2 SQL it doesn't hide the link entity and when you click on the link entity from the "details" page of either Beer or Person it displays all of the link entity records without filtering on beerid or personid.

    Do I need to abandon LINQ 2 SQL as it doesn't work and just use the Entity framework?

     

     

  • Re: linq 2 sql dynamic data bug?

    12-04-2009, 4:23 PM
    • Star
      12,160 point Star
    • sjnaughton
    • Member since 04-29-2008, 1:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,548
    • TrustedFriends-MVPs

    Entity Framework is the way forward as far as m:m is concerned Sad see this post Update on LINQ to SQL and LINQ to Entities Roadmap on the ADO.Net blog it says they are going to make some improvements but give no details although Scott Guthrie at the Guathon in Manchester  says there are some new feature in L2S I've yet to hear anyone talk about them Sad

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
    Filed under:
Page 1 of 1 (2 items)