Created
January 23, 2021 23:47
-
-
Save JIOO-phoeNIX/4350e7efcaeb6ea911c68b3744d1c8f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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