Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

BLB executing Dataportal_Update with non-dirty objects

$
0
0

Hi,

I have a BLB-object (we can call it list) which holds 5 BB-objects. After I have added a new object to the collection I then use list = list.Save(), and it then enters my Dataportal_Update (where I have my base.Child_Update call) for some reason although the first 5 objects haven't been changed or altered in any way. After going through Dataportal_Update for all the first 5 objects, Dataportal_Insert is then executed and the new object is added/written to an Xml-file. Shouldn't Dataportal_Insert be called without first going through Dataportal_Update 5 times, i.e. why are the first 5 objects dirty (IsDirty = true) when they imo actually are not?

Regards

/Peter


Viewing all articles
Browse latest Browse all 764

Trending Articles