Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Object not returning entity
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01154723
Message ID:
01155313
Vues:
24
Brian,

>If Me._entity Is Nothing Then
> Me._entity = New CUSTOMEREntity()
>End If
>Me._entity.SetDataRow(Me.DataRow)
>Return Me._entity
>End Get
>Set
> Me._entity = value
>End Set

If Me.DataRow is Nothing, that most likely means your query didn't return any results. I recommend setting a breakpoint in your business object method at run time and examining the DataTable using the DataSet Visualizer (just click on the magnifying glass you when hover your mouse pointer over a DataTable or DataSet in the debugger).

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform