I've successfuly returned an entityList from a datareader into my BO. This list populates a datagrid (as well successfully). However, these are my questions.
1) When I loop through the EntityList and assign the values of the current item into my bo.Entity object, the "hasvalues" property is still false (why?). However, the properties of the entity are populated and show data.Do I need to use the "setdatarow" method to populate the entity object. How would I achieve this because the setdatarow expects datarow parameter. What would I achieve by that, at the end it seems that my entity object has values.
Private Sub MmButton3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MmButton3.Click
Dim lEntity As MONITORTEST_en
For Each lEntity In Me.oList.EntityList
Me.oList.Entity = lEntity 'Assign values to my bo.entity object.
MsgBox(Me.oList.Entity.HasValues.ToString) 'This returns false. Why?
MsgBox(Me.oList.Entity.MONITOR_TEST_ID.ToString()) 'This shows data
MsgBox(Me.oList.Entity.MONITOR_TEST_DESC.ToString()) 'this shows data
Next lEntity
End Sub