Skip to content

Instantly share code, notes, and snippets.

@maiconheck
Last active June 20, 2023 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maiconheck/6bedf73df6e60ad7f12ff2110d8d253c to your computer and use it in GitHub Desktop.
Save maiconheck/6bedf73df6e60ad7f12ff2110d8d253c to your computer and use it in GitHub Desktop.
[1º improvement] An anemic entity sample for blog posting.
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