Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Jump Start - Create Biz Obj VB .NET. Steps 6,7
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01118809
Message ID:
01119455
Vues:
14
Jim,

>Are you saying I can add entity objects to existing business objects using the generator?

Actually you can! (I spent LOTS of time making sure you could). Check out the MM .NET Dev Guide topic "Using the MM .NET Business Layer Generator | Step 2: Specifying the Code Generation Settings". There is a section "Generating Auxiliary Objects for Existing Business Objects" which says:

"If you have an existing business object for which you want to generate an entity, rule, or default value object, uncheck the Business Object check box, and select the auxiliary objects you want to generate. For exampel, if you want to generate an entity object for an existing business object, uncheck the Business Object check box, make sure the Entity Object check box is selected, and unselect the Business Rules Object and Default Values Object check boxes.

When generating auxiliary objects (entity, rules, defaults), if a reference property already exists on the business object, it is not recreated. When generating a rules object, if the CreateBusinessRuleObject() method already exists on the main business object, it is not recreated. When generating a default values object, if a HookSetDefaultValues() method already exists on the main business object, it is not recreated. If you comment out these existing properties or methods, they will be recreated."

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