Untitled
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace StudentCourseEnrollmentSystemAPI.Models; public class Student { [Column("Id")] public int Id { get; set; } [Required(ErrorMessage = "Address is a required field.")] [MaxLength(255, ErrorMessage = "Maximum length for the Class is 255 characters.")] public string? Address { get; set; } public ICollection<EnrollmentApplication> EnrollmentApplications { get; set; } }
Leave a Comment