Created
August 18, 2012 15:57
-
-
Save bsommardahl/3387958 to your computer and use it in GitHub Desktop.
Complete Auto-Updating CustomerAddress Entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomerAddress | |
{ | |
public event DomainEvent NotifyObservers; | |
string _name; | |
public string Name | |
{ | |
get { return _name; } | |
set | |
{ | |
_name = value; | |
NotifyObservers(new CustomerAddressChanged(this)); | |
} | |
} | |
string _address; | |
public string Address | |
{ | |
get { return _address; } | |
set | |
{ | |
_address = value; | |
NotifyObservers(new CustomerAddressChanged(this)); | |
} | |
} | |
string _city; | |
public string City | |
{ | |
get { return _city; } | |
set | |
{ | |
_city = value; | |
NotifyObservers(new CustomerAddressChanged(this)); | |
} | |
} | |
string _state; | |
public string State | |
{ | |
get { return _state; } | |
set | |
{ | |
_state = value; | |
NotifyObservers(new CustomerAddressChanged(this)); | |
} | |
} | |
string _zip; | |
public string Zip | |
{ | |
get { return _zip; } | |
set | |
{ | |
_zip = value; | |
NotifyObservers(new CustomerAddressChanged(this)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment