Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application Security
Message
From
07/12/2007 04:35:34
Raihiemie Razak
Smart Brain Sdn. Bhd.
Malaysia
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01271175
Message ID:
01273846
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform