Created
December 30, 2020 20:59
-
-
Save JIOO-phoeNIX/0e373fb3981c39624293df25f7ae9be9 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
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
namespace GraphQLSampleApp.DataAccess.Entity | |
{ | |
public class Department | |
{ | |
[Key] | |
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | |
public int DepartmentId { get; set; } | |
public string Name { get; set; } | |
public ICollection<Employee> Employees { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment