Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inherit a class from a MMBusiness inherited class.
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00884365
Message ID:
00885203
Vues:
21
Nuri,

>This is a question, can we write new business class look like below?
>
>class VIPerson : person /* person Inherited from MMBusiness */
>{
> public person()
> {
> this.TableName = "VIPerson" ;
> this.PrimaryKey = "VIPPK" ;
> }
>}
>
>I want to discuss this desing, any idea?

Now I understand...and yes...this is a perfectly acceptable design. Just make sure all of your code in the parent class references the TableName and PrimaryKey properties rather than hard-coding these in SQL commands or business logic.

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