Deeper property comparisons

Topics: Wish List Forum
Dec 14, 2006 at 3:06 AM
Allow the use of properties of properties of properties (and on and on and on) as comparison values.
i.e. If the class has a property named Customer, which is of type Customer, allow the use of the properties on Customer to be used in for comparison. This functionality should be recursive and allow use at any depth.

private DateTime _orderDate;

EvilAttributes.ValidateDateOccursOnOrAfter("Customer.SignUpDate","Order Date must be on or after the customer's Sign Up Date")
public DateTime OrderDate
get { return _orderDate; }
set { _orderDate = value; }
Dec 18, 2006 at 5:43 AM
Good idea. We'll look into this for a future release.
Feb 8, 2007 at 4:00 PM
This discussion has been copied to Work Item 8087. You may wish to continue further discussion there.