Author: hugo | Posted on: 3/30/2010 6:18:39 PM | Views : 263

Hi
I have a MembershipProvider that is working well, it currently creates instances of a MembershipUser.
We want to add a field to this called 'WasEmailed' that we will set to true if we succesfully send a registration e-mail, if e-mail is down though or we try but fail to send for any reason, then we will leave this as set to false.
That way we can have some future means of identifying any user for whom we were unable to send a registration e-mail.
(We aren't trying to track if he gets the e-mail, only that the our site was able to submit an e-mail to our SMTP server).
So I guess good way is to derive a new class (EnhancedMembershipUser) that has this additional flag, it also provides scope for other future additions if these arise.
But is there a simpler way?
Because doing it this way requires we modify the provider (it internally creates MembershipUser instances now) which means it would always need access to ou ...

Go to the complete details ...