Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

publicclassEmployee : IEquatable&lt;Employee&gt;<br />{<br />publicbool Domain Driven Design 101


Published on

publicclassEmployee : IEquatable<Employee&gt;{publicbool Equals(Employee other) {returnthis.Id.Equals(other.Id); }}Entities are the same if they have the same identitypublicclassPostalAddress : IEquatable<PostalAddress&gt;{publicbool Equals(PostalAddress other) {returnthis.Number.Equals(other.Number) && this.Street.Equals(other.Street) && this.PostCode.Equals(other.PostCode) && this.Country.Equals(other.Country); }}Value Types are the same if they have the same value

Published in: Technology, Business
  • Login to see the comments