Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unable to register business object in WPF
Message
De
07/05/2009 20:16:55
 
 
À
06/05/2009 17:09:35
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01398219
Message ID:
01398475
Vues:
46
Thanks for your reply. I did have the Patient object defined correctly at first, but then changed it to see if it would make a difference.
private Patient Patient; instead of private Patient = new Patient();

I found out I had some issues with the names of my stored procedures. I couldn't get the MM.Net AAppTest to run correctly. I fixed that and tried to run from the main application again. I'm still getting the same error: "Object reference not set to an instance of an object." in this line of code:
this.Patient = (Patient)this.RegisterPrimaryBizObj(new Patient());


Is there supposed to be code in the HookConstructor() method in the partial.cs file for my business object (Patient in this case)? That method is empty and yet is called by the business object constructor. The MM.Net Dev Guide doesn't mention putting any code in there. But how is the object supposed to get the data from the data source if there are no data access calls?

Very confusing.

Thanks!

Lynn 8-)
Lynn Sim
Perot Systems Corp
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform