Last active
June 20, 2023 12:24
-
-
Save maiconheck/6bedf73df6e60ad7f12ff2110d8d253c to your computer and use it in GitHub Desktop.
[1º improvement] An anemic entity sample for blog posting.
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 Lead | |
{ | |
// The minimum data needed to create a Lead instance. | |
// The name and e-mail are the minimum necessary for a Lead to exist. Remember? | |
public Lead(string name, string email) | |
{ | |
Name = name; | |
Email = email; | |
} | |
public string Email { get; set; } | |
// ... remaining code omitted for simplicity ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment