Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overridning MM Security Object
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Overridning MM Security Object
Divers
Thread ID:
01274484
Message ID:
01274484
Vues:
54
Hello all,

I have added a column to the MM built in user table and need to override the security classes for this new column. I believe I need to add a property to the mmUser class as well as the mmUserManager class.

I am attempting to subclass this by following the directions in the Dev guide and have followed these directions that instruct me to add the new class in the ABusinessObject class and override the createUserObject in the Factory.cs file.

When trying to reference the new class in the Factory file, the class is not found. I tried adding a 'using' clause, but still it cannot be found. I opened my aAppTest file to test and was able to reference this new class there, so the class is out there, but I am not sure why it cannot be referenced in the factory.cs file. Here is the code from the aBusinessObject.cs file:
/// <summary>
/// Subclass of mmuser to add clientID as property
/// </summary>
    public class tmUser : mmUser
    {
        // Added client id as a property
        public int ClientID;
        /// <summary>
        /// Constructor for my user changes
        /// </summary>
        public tmUser()
        {
            this.ClientID = 0;
        }
    }
For informational purposes, this is a web application. Also, I have set the project build order and project dependencies properly.

Thanks in advance for any help.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform