-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStudent.cs
36 lines (26 loc) · 1.19 KB
/
Student.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.ComponentModel.DataAnnotations;
namespace MarkMe.Database.Entities
{
public class Student
{
[Key]
public int StudentId { get; set; }
[StringLength(4, ErrorMessage = "College roll no cannot be longer than 4 characters.")]
public string CollegeRollNo { get; set; } = string.Empty;
[StringLength(6, ErrorMessage = "University roll no cannot be longer than 6 characters.")]
public string UniversityRollNo { get; set; } = string.Empty;
[StringLength(12, ErrorMessage = "Registration no cannot be longer than 12 characters.")]
public string RegistrationNo { get; set; } = string.Empty;
[StringLength(50)]
public string FirstName { get; set; } = string.Empty;
[StringLength(50)]
public string LastName { get; set; } = string.Empty;
[EmailAddress]
public string Email { get; set; } = string.Empty;
[StringLength(9, ErrorMessage = "Session cannot be longer than 9 characters.")]
public string Session { get; set; } = string.Empty;
[StringLength(9)]
public string Section { get; set; } = string.Empty;
public bool IsDeleted { get; set; }
}
}