Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Objects not returning data
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01309927
Message ID:
01310947
Views:
8
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
Previous
Reply
Map
View

Click here to load this message in the networking platform