-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActor.cs
More file actions
31 lines (26 loc) · 935 Bytes
/
Actor.cs
File metadata and controls
31 lines (26 loc) · 935 Bytes
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
using eTickets.Data.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace eTickets.Models
{
public class Actor:IEntityBase
{
[Key]
public int Id { get; set; }
[Display(Name = "Profile Picture")]
[Required(ErrorMessage = "Profile Picture is required")]
public string ProfilePictureURL { get; set; }
[Display(Name = "Full Name")]
[Required(ErrorMessage = "Full Name is required")]
[StringLength(50, MinimumLength = 3, ErrorMessage = "Full Name must be between 3 and 50 chars")]
public string FullName { get; set; }
[Display(Name = "Biography")]
[Required(ErrorMessage = "Biography is required")]
public string Bio { get; set; }
//Relationships
public List<Actor_Movie> Actors_Movies { get; set; }
}
}