[NotNullNotEmpty(Message = "Empty phone number is not allowed"]
Gustavo.
On Thu, Nov 20, 2008 at 2:00 PM, Paulo Quicoli <[EMAIL PROTECTED]>wrote:
> Hi !
>
> I have this code:
>
> [NotNullNotEmpty]
> public virtual string PhoneNumber
>
> {
> get { return _phoneNumber; }
> set
> {
> _phoneNumber = value;
> base.RaisePropertyChanged;
>
> }
> }
>
>
> How can i add a custom message to that constraint ? Is possible do this:
>
> [NotNullNotEmpty(*"Empty phone number is not allowed"*]
>
> public virtual string PhoneNumber
> {
> get { return _phoneNumber; }
>
> set
> {
> _phoneNumber = value;
> base.RaisePropertyChanged;
> }
> }
>
>
> Thanks !
>
> --
> Paulo R. Quicoli
>
> Editor Técnico - ClubeDelphi Magazine - DevMedia
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---