Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created Jul 8, 2021
Embed
What would you like to do?
[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