General information
Category:
The Mere Mortals .NET Framework
Hi,
I am at the moment changing the names of the default MM security tables to AppName_mmTableName. I have inherited from the necessary security
business objects and overridden their creation methods in the factory.
The problem is that the security table Users is still being called when I try to log into the application eventhough I have made a new User class that inherits from mmUser and put the new table name in its constructor.
To replicate this problem :
1. create a new MM project
2. create a new database and use script MMSecurity.sql to create security tables 3. rename security table Users to AppUsers 4. Put new business object for table AppUsers in Business.cs. Example :
public class AppUser : mmUser
{
public AppUser()
{
this.TableName = "AppUsers";
}
}
5. Put new factory method for AppUsers business object in Factory.cs.
Example :
public override mmUser CreateUserObject()
{
return new AppUser();
}
6. Start application and try to log into as default user mm.
In my case I get an application exception with the following message :
Invalid object name 'Users'. Is there something I have missed? Do I have to override methods in the UserLoginForm to ensure that the new AppUsers table is used to authenticate users on logon?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only