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