Print Page | Close Window

GetEntityGraph not returned Deleted records

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=356
Printed Date: 14-Mar-2025 at 10:13pm


Topic: GetEntityGraph not returned Deleted records
Posted By: eaveav
Subject: GetEntityGraph not returned Deleted records
Date Posted: 06-Aug-2007 at 4:39am
I use GetEntityGraph for get altered records.
 
I have one Order and any OrderDetail records
 
If I delete record in child table (OrderDetail) and use GetEntityGraph, Deleted records from child table (OrderDetail) not returned.
Added and Modified - Ok.
 
 
This is DevForce code.
internal  http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Collections.IList - IList   http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Persistence:3.5.2.5:287b5094865421c0/IdeaBlade.Persistence.PersistenceManager/FindChildren%28System.Collections.ICollection,IdeaBlade.Persistence.EntityRelation%29:System.Collections.IList - FindChildren ( http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Collections.ICollection - ICollection  pEntities,  http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Persistence:3.5.2.5:287b5094865421c0/IdeaBlade.Persistence.EntityRelation - EntityRelation  pEntityRelation)
{
     http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Collections.ArrayList - ArrayList  list = new  http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Collections.ArrayList/.ctor%28%29 - ArrayList ();
     http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Data:2.0.0.0:b77a5c561934e089/System.Data.DataRelation - DataRelation  relation = this. http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Persistence:3.5.2.5:287b5094865421c0/IdeaBlade.Persistence.PersistenceManager/ResolveEntityRelation%28IdeaBlade.Persistence.EntityRelation%29:System.Data.DataRelation - ResolveEntityRelation (pEntityRelation);
    foreach ( http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Persistence:3.5.2.5:287b5094865421c0/IdeaBlade.Persistence.Entity - Entity  entity in pEntities)
    {
        if (entity. http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Persistence:3.5.2.5:287b5094865421c0/IdeaBlade.Persistence.Entity/property:RowState:System.Data.DataRowState - RowState  ==  http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Data:2.0.0.0:b77a5c561934e089/System.Data.DataRowState - DataRowState . http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Data:2.0.0.0:b77a5c561934e089/System.Data.DataRowState/Deleted - Deleted )
        {
            list. http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Collections.ArrayList/AddRange%28System.Collections.ICollection%29 - AddRange (entity. http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Data:2.0.0.0:b77a5c561934e089/System.Data.DataRow/GetChildRows%28System.Data.DataRelation,System.Data.DataRowVersion%29:System.Data.DataRow%5b%5d - GetChildRows (relation,  http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Data:2.0.0.0:b77a5c561934e089/System.Data.DataRowVersion - DataRowVersion . http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Data:2.0.0.0:b77a5c561934e089/System.Data.DataRowVersion/Original - Original ));
            continue;
        }
        list. http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Collections.ArrayList/AddRange%28System.Collections.ICollection%29 - AddRange (entity. http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Data:2.0.0.0:b77a5c561934e089/System.Data.DataRow/GetChildRows%28System.Data.DataRelation%29:System.Data.DataRow%5b%5d - GetChildRows (relation));
    }
    return list;
}
I think Deleted childs returned ONLY for deleted Root.
Is right?



Replies:
Posted By: davidklitzke
Date Posted: 06-Aug-2007 at 9:10am
This is a bug which will be fixed in our DevForce 3.5.3 version which we anticipate releasing on Wednesday, August 8.



Print Page | Close Window