Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inconsistency in mmRole.cs
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Inconsistency in mmRole.cs
Divers
Thread ID:
00974877
Message ID:
00974877
Vues:
57
Kevin,

In the HookPostGetData() of mmRole you allow for an override by the user to an array of discription columns when you compose the dataview sort:

if (!mmString.Empty(this.DescriptionField))
{
dv.Sort = this.DescriptionField;
}
else if (this.DescriptionFields != null && this.DescriptionFields.Length > 0)
...

In the constructor of mmRoleRules you don't do this but simply assume that the user will stick with the single string value:

mmRole oRole = (mmRole)hostObject;
this.AddRequiredField(oRole.DescriptionField);

This might be fairly trivial for the experienced but wouldn't it be better to maintain consistent usage between these two related objects?

Thanks,
Max...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform