Untitled
unknown
plain_text
a year ago
583 B
12
Indexable
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;
}
}
Editor is loading...
Leave a Comment