Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inherit a class from a MMBusiness inherited class.
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00884365
Message ID:
00885203
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform