I have a structure:
[Serializable]
public struct Address
{
private string _street1;
private string _street2;
private string _suburb;
private string _state;
private string _postcode;
private string _country;
:
}
Struct Address can be used by Employee or Customer.
However, Address in Employee and Customer may have different
constraints.
For example:
Employee.Address.County can only be Australia and NewZealand
However, Customer.Address.Country can by anything (NotNull).
I am using Attribute and Xml file to configure the validation.
Is it possible to achieve?
Regards,
Revin.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
Thanks.
I will manage it as part of business rule.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.