Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created July 22, 2021 18:07
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/57d9153beb05a89113fad55e1f2afc45 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/57d9153beb05a89113fad55e1f2afc45 to your computer and use it in GitHub Desktop.
.NET - Entity Framework Core - Student Entity for Global Filters Demo
public class Student
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address { get; set; }
public string Nationality { get; set; }
public DateTime CreatedOn { get; set; }
public DateTime ModifiedOn { get; set; }
public bool IsDeleted { get; set; }
public DateTime DeletedOn { get; set; }
public override string ToString()
=> $"{{ Id: {Id}, FirstName={FirstName}, LastName:{LastName}, IsDeleted={IsDeleted} }}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment