Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.NET - EF Core entity for demonstration
public class Student
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address { get; set; }
public DateTime CreatedOn { get; set; }
public DateTime ModifiedOn { get; set; }
public DateTime DeletedOn { get; set; }
public override string ToString()
=> $"{{ Id: {Id}, FirstName={FirstName}, LastName:{LastName} }}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment