Files
Prog4_Beadando/WD7UVN_HFT_2023241.Models/Client.cs

23 lines
551 B
C#
Raw Normal View History

2023-12-05 15:42:37 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-12-10 17:16:07 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2023-12-05 15:42:37 +01:00
namespace WD7UVN_HFT_2023241.Models
{
public class Client
{
2023-12-10 17:16:07 +01:00
[Key]
2023-12-05 15:42:37 +01:00
public int ID { get; set; }
2023-12-10 17:16:07 +01:00
[Required]
2023-12-05 15:42:37 +01:00
public string NAME { get; set; }
public string EMAIL { get; set; }
public string PHONE { get; set; }
2023-12-10 17:16:07 +01:00
[ForeignKey(nameof(Service))]
2023-12-05 15:42:37 +01:00
public int SERVICE_ID { get; set; }
}
}