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:
01154959
Views:
9
Brian,

>I have a simple win form that looks up a customer using a search bar. When the user selects a customer the Customer business object (oCustomer) oCustomer.GetCustomerbyID()
>method is fired to retrive a single customer. This is working fine but when I check the oCustomer.entity its empty, nothing has been set. The GetCustomerbyID method of the business object is set to return me.entity just like the jumpstart example.
>
>Is there something I'm missing?

Your business object's Entity property's get() accessor should contain code that automatically instantiates an entity object if (this._entity == null). Is that code not present? For an example of this, check out the Entity property of the sample application's Orders business object.

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