Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Inconsistency in mmRole.cs
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement