Either this or you can call the base method (which is what I do),
as in base.Child_Create() which does call ValidationRules.CheckRules();
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: alef
[mailto:cslanet@lhotka.net]
Sent: Monday, November 10, 2008 9:11 AM
To: Sergey Barskiy
Subject: [CSLA .NET] When to call ValidationRules.CheckRules() in CSLA
3.5?
Do we need to call Validation.Checkrules() in the Child_Create() method.
In 2.1 we need to do that. Is this not anymore the case in 3.5?
eg. ProjectResource
protected override void Child_Create()
{
LoadProperty<SmartDate>(AssignedProperty, new
SmartDate(System.DateTime.Today));
Validation.Checkrules(); ?????
}
Copyright (c) Marimer LLC