Closed GoogleCodeExporter closed 9 years ago
Hello,
The AddSharedRules partial methods should be placed in the entity classes.
Update the method to look like the following
static partial void AddSharedRules()
{
// Rule allows the Name property to be a max of 150 characters.
RuleManager.AddShared<Products>(new LengthRule("Name", 150));
}
and place it in the Products entity class and let me know if that works for you.
Original comment by shannon....@gmail.com
on 7 Oct 2009 at 4:51
Thank you for the quick response - that works perfectly. Do you think the WIKI
page
should be updated to reflect this?
Thanks again.
Original comment by noo...@gmail.com
on 7 Oct 2009 at 9:25
Original comment by bniemyjski
on 8 Oct 2009 at 10:13
http://plinqo.com/Features.ashx#rules gives a quick overview of the rules.
Original comment by shannon....@gmail.com
on 9 Oct 2009 at 6:54
Original issue reported on code.google.com by
noo...@gmail.com
on 7 Oct 2009 at 4:09Attachments: