Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving nonBound EntityList back to BO.CurrentDataSet
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01311289
Message ID:
01311371
Views:
18
Thanks Kevin,

Let me try to be simpler and clearer.

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.

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...?

I.e., we have
DataSet to EntityList
mmBindingList<RequestNoteEntity> eListRequestNote = oRequestNote.CreateEntityList();
Is there some way going the other direction?:
EntityList back to DataSet
// fantasy code
DataSet dsRequestNote = oRequestNote.EntityList.CreateCurrentDataSet();
// or
DataSet dsRequestNote = oRequestNote.CreateCurrentDataSetFromEntityList();
from: ------------------------
MM .NET Developer's Guide
Understanding Business Entity Objects

...
SetDataRow() should only be used with a "free standing" entity object (one that is not associated with a business object's Entity property).
...
-------------------------

Is the mmBusinessObject EntityList ... "free standing"?

Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform