Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set the datarow with Entity List from a dataReader
Message
De
14/02/2007 14:52:32
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
How to set the datarow with Entity List from a dataReader
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Oracle
Divers
Thread ID:
01195773
Message ID:
01195773
Vues:
75
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform