Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created July 16, 2021 17:43
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 manoj-choudhari-git/40b0b4a0211e7bcda4f762c5f8acda26 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/40b0b4a0211e7bcda4f762c5f8acda26 to your computer and use it in GitHub Desktop.
.NET - Entity Framework Core Model for a demo of .NET Events
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()
=> $"Student Id ={Id}, FirstName={FirstName}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment