forked from sanchezvem/PyroFetes
Entité du sujet 3 avec connections et cardinalités
This commit is contained in:
22
PyroFetes/Models/Staff.cs
Normal file
22
PyroFetes/Models/Staff.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PyroFetes.Models;
|
||||
|
||||
public class Staff
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string FirstName { get; set; } = null!;
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string LastName { get; set; } = null!;
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? Profession { get; set; }
|
||||
|
||||
[EmailAddress, MaxLength(120)]
|
||||
public string? Email { get; set; }
|
||||
|
||||
public ICollection<Show> Shows { get; set; } = new List<Show>();
|
||||
}
|
Reference in New Issue
Block a user