Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GraphQLSampleApp.DataAccess.Entity
public class Employee
public int EmployeeId { get; set; }
public string Name { get; set; }
public string Email { get; set; }
[Range(minimum: 20, maximum: 50)]
public int Age { get; set; }
public int DepartmentId { get; set; }
public Department Department { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment