Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application Security
Message
De
07/12/2007 04:35:34
Raihiemie Razak
Smart Brain Sdn. Bhd.
Malaisie
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01271175
Message ID:
01273846
Vues:
16
Hi Kevin,

I've found the solution to do this. I just alter the 'Users' table structure according to my needs. Then, I generate the BO and override CreateUserObject function in Factory.vb inside App_Code folder. I just import my BO in Factory.vb and add the following codes.

Public Overrides Function CreateUserObject() As mmUser
Return New User
End Function

Previously, I've done like this and found error when 'Return New User'
The Developer's Guide shown that, to alter security tables structure, need to add the following codes in ABusinessObject.vb

Public Class User
Inherits mmUser

' Constructor
Public Sub New()
Me.TableName = "User"
Me.PrimaryKey = "User_PK"
End Sub

End Class

Then, I found out that it shouldn't be done like that.
The 'User' table should be generated in the BO instead of sub-class it in ABusinessObject.

Regards,
Raihiemie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform