using System.ComponentModel.DataAnnotations.Schema; [Table("t_Department", Schema = "school")] public class Department { public int Id { get; set; } public string Name { get; set; } }