Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving nonBound EntityList back to BO.CurrentDataSet
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01311289
Message ID:
01311705
Vues:
19
Patrick,

>I want to programatically add and remove an Entity to/from an EntityList.
>And then a Parent business object saves it.
>There is no DataBinding going on with the EntityList.
>
>I assumed mmBindingList.AddNew() ... .EndNew() would add a row to the EntityList's business object's DataSet.

>This is not the case.
>
>And I assumed mmBindingList.RemoveAt(row) would remove/delete a row from the EntityList's business object's DataSet.

>This is also not the case.

That's right...these are methods inherited from the .NET BindingList class and they know nothing about underlying data. Rather than using these methods, you should instead use the business object's NewEntity() and DeleteEntity() methods which affect both the entity list and the underlying data.

>Is there a way to "refresh" the Entity's business object DataSet from it's EntityList?
>
>Or better, "tie" The BO's EntityList to the BO's DataSet. Anyway, so a parent BO's save() saves the information in the EntityList...?

If you have registered a child business object with a parent business object, then the child's entity list is automatically saved when the parent business object is saved.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform