I started a project to see what EF 4 can do with POCOs. I created a db and a custom POCO. Now i want to validate my data. For this i'm using the Enterprise Library Validation Block 5.
I have no problem including the validation in my POCOs through attributes and using it with Entity Framework but this means that my POCOs wouldn't be POCO...
I'm configuring validation application block from Enterprise Library 5 to use validation rules from the web.config file over a WCF call.
The problem is as new calls to the WCF service occur, validation application block is spending a considerable amount of time reading the validation configuration before validating. So my first call to...
If I have two validators, a NotNullValidator and a StringLengthValidator, is there a way to get only a Null Validation Error and not both. For example:
public class Test
{
[NotNullValidator(MessageTemplate="Name is required"),
StringLengthValidator(1,50, MessageTemplate="Name must be between 1 and 50 characters")]
public str...