Skip to content

Instantly share code, notes, and snippets.

@JIOO-phoeNIX
Created December 30, 2020 20:59
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/0e373fb3981c39624293df25f7ae9be9 to your computer and use it in GitHub Desktop.
Save JIOO-phoeNIX/0e373fb3981c39624293df25f7ae9be9 to your computer and use it in GitHub Desktop.
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