Removing childs doesn't sincronizing before double SaveChange() asp.net core RRS feed

  • Question

  • Hi guys,

    EF only identify childs removed when i try to update and save change twice the same object, first original object and after with modified object.
    Friday, October 20, 2017 4:16 PM

All replies

  • I don't know if i'm wrong on my code or it's a bug from asp.net core.

    I would say that you really don't know how EF works. I would also say learn how to use EF with the Entity in a disconnected state, stateless.


    ASP.NET is Web technology, which is stateless.

    ASP.NET Core and EF too can be discussed at the ASP.NET forums.


    Friday, October 20, 2017 9:50 PM

  • Hi Régis Debona,

    >>Removing childs doesn't sincronizing before double SaveChange() asp.net core

    thanks for posting here.

    The Visual C# discuss and ask the C# programming language, IDE, libraries, samples and tools .

    For your case about  asp.net core, please go to  asp.net core forum for suitable help.

    Your understanding and cooperation will be grateful.

    Best Regards,

    Yohann Lu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, October 23, 2017 6:31 AM