Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Access object creation in mmBusinessObject is fragi
Message
 
À
07/05/2007 17:56:32
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01222394
Message ID:
01223473
Vues:
32
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform