Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set the datarow with Entity List from a dataReader
Message
From
14/02/2007 14:52:32
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
How to set the datarow with Entity List from a dataReader
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Oracle
Miscellaneous
Thread ID:
01195773
Message ID:
01195773
Views:
74
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
Next
Reply
Map
View

Click here to load this message in the networking platform