Hi i just saw this thread i would like to check if the cska DataMapper is not recursive how is the way to get done the Parent/ Child collection VIA data mapper any help
You just loop through each object in the graph and apply DataMapper to each object individually. Normally this is how you get the data from ASP.NET anyway, so it is a pretty natural process.
Thanks rocky for the reply
i actually at the did that i wrote
For Each row As DataRow in Transaction Table
Dim ItemMapper as New Csla.Data.ObjectAdapter
ItemMapper.Fill(transaction.Item(row("Id")).Items
Next
GridContro.DataSource= TransactionTable
----------
But discovered
That the GridView is giving me all the items from the derived class EG IsNew, IsFalse . and not just the BusinessObjects
Any idea how to work around this that it should not get that objects
CSLA uses the Microsoft-defined attribute (Browsable(false)) to indicate which fields should be ignored by data binding. Unfortunately not all Microsoft data binding technologies honor that attribute. If that attribute isn't honored, you need to tell the datagrid control to stop auto-generating the columns and you need to define the columns yourself. That is typically done by using the column editor available from the Columns property in the control's properties window.
Copyright (c) Marimer LLC