New Posts New Posts RSS Feed: GetEntityGraph not returned Deleted records
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

GetEntityGraph not returned Deleted records

 Post Reply Post Reply
Author
eaveav View Drop Down
Newbie
Newbie


Joined: 06-Aug-2007
Location: Russian Federation
Posts: 1
Post Options Post Options   Quote eaveav Quote  Post ReplyReply Direct Link To This Post Topic: GetEntityGraph not returned Deleted records
    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 IList FindChildren(ICollection pEntities, EntityRelation pEntityRelation)
{
    ArrayList list = new ArrayList();
    DataRelation relation = this.ResolveEntityRelation(pEntityRelation);
    foreach (Entity entity in pEntities)
    {
        if (entity.RowState == DataRowState.Deleted)
        {
            list.AddRange(entity.GetChildRows(relation, DataRowVersion.Original));
            continue;
        }
        list.AddRange(entity.GetChildRows(relation));
    }
    return list;
}
I think Deleted childs returned ONLY for deleted Root.
Is right?


Edited by eaveav - 06-Aug-2007 at 4:52am
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down