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:
01154959
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform