Graeme MillerGraeme Miller

My feedback

  1. 273 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      4 comments  ·  Entity Framework Feature Suggestions » runtime  ·  Flag idea as inappropriate…  ·  Admin →
      Graeme MillerGraeme Miller supported this idea  · 
    • 670 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        Graeme MillerGraeme Miller commented  · 

        This can be handled by making the OrderLine key an identifying relationship http://msdn.microsoft.com/en-us/library/ee373856.aspx.

        If the orderline key is a composite and contains the parent key (OrderId) you can use remove on the collection and it works. However it is far from clear and it should be handled as an option.

        See here http://stackoverflow.com/questions/11033348/is-it-possible-to-remove-child-from-collection-and-resolve-issues-on-savechanges

      • 1,811 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          Graeme MillerGraeme Miller supported this idea  · 
        • 3,274 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            Graeme MillerGraeme Miller commented  · 

            Be nice to be able to map .Net TimeSpan property directly to something in MS SQL server. CodeFirst seems to map Timespan to a SQL Timespan which is only 24 hours and you have to put a wrapper around it.

          Feedback and Knowledge Base