Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Network:
Windows 2003 Server
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement