Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Access object creation in mmBusinessObject is fragi
Message
 
To
07/05/2007 17:56:32
Walter Nicholls
Cornerstone Software Ltd
Auckland, New Zealand
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01222394
Message ID:
01223473
Views:
33
Walter,

>Wouldn't the dataAccessClassName come in as String.Empty or null in this case? I'm talking about a SPELLING MISTAKE. No error is raised, it just uses the wrong provider and crashes later.
>
>> Actually, CreateDataAccessObject() is eventually in the call chain.

You're right...I changed mmBusinessObject.CreateDataAccessObject() so it calls Factory.CreateDataAccessObject() rather than resolving the concrete data access class in the business object. Also changed behavior so that unknown data access class names no longer default to returning a SQL Server data access class, but instead throw an exception.

Picture your name in the next What's New Guide--which has been proven to increase honorees sex appeal. You may want to start wearing a disguise when leaving the house.

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
Next
Reply
Map
View

Click here to load this message in the networking platform