34 #region System.Object Method Overrides
36 public override bool Equals(
object obj)
45 if (
Name !=
null) hashCode ^=
Name.GetHashCode();
54 #region IEquatable<Customer> Members
60 return (StringComparer.OrdinalIgnoreCase.Equals(
Name, other.
Name) &&
72 #region Custom Serialization Methods
93 this.
Name = info.GetValue<
string>(
"Name");
108 get {
return GetProperty(Property_Name, _name); }
109 set { SetProperty(Property_Name, ref _name, value); }
120 get {
return GetProperty(Property_PrimaryContact, _primaryContact); }
121 set { SetProperty(Property_PrimaryContact, ref _primaryContact, value); }
132 get {
return GetProperty(Property_AccountsPayableContact, _accountsPayableContact); }
133 set { SetProperty(Property_AccountsPayableContact, ref _accountsPayableContact, value); }
This is the base class from which most business objects will be derived.
Maintains metadata about a property.
virtual T DefaultValue
Gets the default initial value for the property.
Object containing the serialization data for a specific object.
int ReferenceId
Reference number for this object.
Dictionary< string, ChildData > Children
Dictionary containing child reference data.
void AddChild(string name, int referenceId)
Adds a child to the list of child references.
void AddValue(string name, object value)
Adds a value to the serialization stream.
Implementation of a test business object using CSLA managed properties backed by fields,...
override void OnSetChildren(SerializationInfo info, MobileFormatter formatter)
override void OnGetState(SerializationInfo info, StateMode mode)
override void OnSetState(SerializationInfo info, StateMode mode)
string Name
Gets or sets the name of the customer.
override bool Equals(object obj)
override int GetHashCode()
override void OnGetChildren(SerializationInfo info, MobileFormatter formatter)
CustomerContact PrimaryContact
Gets or sets the primary customer contact.
bool Equals(Customer other)
CustomerContact AccountsPayableContact
Gets or sets the accounts payable contact for the customer.
StateMode
Indicates the reason the MobileFormatter functionality has been invoked.
RelationshipTypes
List of valid relationship types between a parent object and another object through a managed propert...
@ Serializable
Prevents updating or inserting until the transaction is complete.