Skip to content

Instantly share code, notes, and snippets.

@JIOO-phoeNIX
Created January 23, 2021 23:47
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 JIOO-phoeNIX/4350e7efcaeb6ea911c68b3744d1c8f5 to your computer and use it in GitHub Desktop.
Save JIOO-phoeNIX/4350e7efcaeb6ea911c68b3744d1c8f5 to your computer and use it in GitHub Desktop.
namespace GraphQLSampleAppUI.DataAccess.Model
{
public class Employee
{
public int EmployeeId { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public int Age { get; set; }
public int DepartmentId { get; set; }
public Department Department { get; set; }
public override string ToString()
{
return $"EmployeeId: {EmployeeId},\n" +
$"Name: {Name},\n" +
$"Email: {Email},\n" +
$"Age: {Age},\n" +
$"DepartmentId: {DepartmentId},\n" +
$"Department:[ {Department.ToString()}]\n";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment