TheDruidTheDruid

My feedback

  1. 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…)
      TheDruidTheDruid supported this idea  · 
      TheDruidTheDruid commented  · 

      Daniel Simmons has an explanation here
      http://blogs.msdn.com/b/dsimmons/archive/2010/01/31/deleting-foreign-key-relationships-in-ef4.aspx

      (see scenario #1).

      I do not see how the current implementation is actually better than deleting the orphaned objects though.

      And Thank You Richard for an awesome workaround! Love it.

    • 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…)
        TheDruidTheDruid commented  · 

        I hope this does not require me to have a DTO for each object in the Domain Model, though. I would like to store Domain Model objects directly with no DTO and be able to specify an IoC container to create entities.

        TheDruidTheDruid supported this idea  · 
      • 27 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…)
          3 comments  ·  Entity Framework Feature Suggestions  ·  Flag idea as inappropriate…  ·  Admin →

          UPDATE: EF7 opens up to external IoC containers through integration with ASP.NET vNext Dependency Injection abstractions.

          EF6 alpha 1 includes a service locator-based system for plugging in alternate implementations of specific services. See here for a spec: http://entityframework.codeplex.com/wikipage?title=EF%20Configuration%20and%20Extensibility

          However, materialization is still not extensible in or other mechanism.

        Feedback and Knowledge Base