Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created July 8, 2021 17:55
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 explorer14/8db92b0abd89957c8178bb100e67b01c to your computer and use it in GitHub Desktop.
Save explorer14/8db92b0abd89957c8178bb100e67b01c to your computer and use it in GitHub Desktop.
[GenerateMappedDto]
public sealed class Employee
{
public Employee(
string name,
DateTime dateOfJoining)
{
Id = Guid.NewGuid();
Name = name;
DateOfJoining = dateOfJoining;
}
public Guid Id { get; }
public string Name { get; }
public DateTime DateOfJoining { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment