msawczyn / EFDesigner2022

Entity Framework visual design surface and code-first code generation for EF6, Core and beyond
MIT License
119 stars 21 forks source link

Added Reference Item is saved but will not read with "AutoInclude"-Option #102

Open MyKeySoftMK opened 2 months ago

MyKeySoftMK commented 2 months ago

I have create a simple Database: Parent => Child and Parent <= Reference

I create a new ParentItem and add some Childs and some References. All Associations are Bi-Directional and Many:Many. I save the ParentItem to DB and it works. All Data is writen in the Tables

When I read the ParentItem from the DB then the Child-Property is filled. The References-Property is empty.

At the Ref-Association I have on End1 and End2 set the "Auto Include" Option

To reproduce the scenario I have create a simple MSTest-Project. In the Folder "NestedEntities" you find my Test-Class. The Methode "ModifyChildReferenceEntities" show the problem

EFDesigner2022Tests.zip