This project is read-only.


How to validating field inside an array of custom class?


I am using Enterprise Library V4.1 for doing validating my user defined class2 for an application written in .NET 3.5 using C#. I have created 2 classes which look something like this:
class MainBobo
public Dictionary<int, Bobo> Category;
Class Bobo
public string Description;
public Dictionary<int, BoboHelper> MyDirectory;
class BoboHelper
public string Description;
The UI form allows user to enter description for Bobo and BoboHelper on the same form. The user is also allowed to traverse between
different Categories on the same form. The description has to be unique among all the dictionaries.
So my question is how to invoke validation to check for duplicate descriptions? My assumption is that MainBobo is the only one
which knows about all the Bobo objects and Bobo is the only one which knows about all the BoboHelper Objects. But I don't know
how to tell validation method that at any given instance I am trying to validate Description of Bobo class or BoboHelper class.
Also how would it know which validations failed?
I think I have done lousy job explaining this but don't hasitate to ask more questions if this is not clear. Thanks.
Closed Oct 6, 2009 at 3:56 PM by mikesaunders
closed - not an issue


mikesaunders wrote Oct 6, 2009 at 3:55 PM

Is this a ValidationAspects question? You state you are using the Enterprise Library for validation.

Please can you ask questions on the discussion forum and raise issues here? Thanks

wrote Oct 6, 2009 at 3:56 PM

wrote Feb 13, 2013 at 7:03 PM

wrote May 15, 2013 at 3:20 AM