Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Object not returning entity
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01154723
Message ID:
01155313
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform