Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Objects not returning data
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01309927
Message ID:
01310947
Vues:
9
Robert,

>Hello. I'm going through the tutorial for MM.net 3.5. I have success in creating my business objects from the business layer generator in step 4. Once I get to step 5 where you use the class diagram to "GetAllData()" my BO's do not return any data. I've tried this with 2 different databases and each database fails at step 4 in the tutorial. The sample application works fine. Any suggestions?

If you are using MM .NET 3.5, you should be using GetAllEntities() which returns a strongly typed list of entities rather than an untyped DataTable.

Make sure you aren't mixing paradigms. If you have set the DefaultCommandType to StoredProcedure in ABusinessObject, you should use the BLG to create an associated data access class that uses stored procedures. If you don't want to use stored procedures for a particular business object, in the business object's constructor or HookConstructor(), set the DefaultCommandType to Text.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform