It seem a business-rule instead a entity-constraint 2010/1/13 revin <[email protected]>
> Hi,
>
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
>
>
--
Fabio Maulo
-- You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
