Re: Attempt to create ADO.NET Entity Data Model in Visual Studio 2017 fails on latest versions of Connector/NET
Posted by: Won Tarmack
Date: November 19, 2019 05:31PM

When I try to delete a DataGridViewRow (which represents an entity) in a DataGridView in a Windows Forms application it looks like the MySQL Entity Framework attempts to set any foreign keys on the target entity to null but fails on foreign key properties that are collections of entities. The property is not set to null, it simply reduces the collection count down to 0. And even when I set the foreign key property to null myself any attempt to call .SaveChanges(); fails. The exception is what follows:



Please help. I think this is a rug!

Options: ReplyQuote




Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.