Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ordering User Table
Message
 
À
24/04/2005 08:18:52
Bill Benton
North Florida Software Services
Middleburg, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
MS SQL Server
Divers
Thread ID:
01007872
Message ID:
01008346
Vues:
15
Bill,
ck
>I attempted to modify the method "GetAllUserNamesCmd" in mmuser, but it still regers to the initial method. This is the mmuser.cs that was brought up in the debugger. Is it possible that it could be returning the valus from other mmUser.cs?

Are you talking about the Users maintenance form (mmUsersForm)? If so, the command that's being called is mmUser.GetAllUsers(). If you want to change the command that's being executed, do the following:

1. Sublcass mmUser

2. In the constructor of your subclass, set the GetAllUserNamesCmd property value to the SELECT command you need

3. In your application's Factory.cs file, override the CreateUserObject() method and return a reference to your subclass of mmUser. For example:
return new MyUser();
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform