26 lines
655 B
C#
26 lines
655 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WD7UVN_HFT_2023241.Models
|
|
{
|
|
public class Customer
|
|
{
|
|
[Key]
|
|
public int ID { get; set; }
|
|
[Required]
|
|
[StringLength(240)]
|
|
public string NAME { get; set; }
|
|
[StringLength(240)]
|
|
public string EMAIL { get; set; }
|
|
[StringLength(240)]
|
|
public string PHONE { get; set; }
|
|
[ForeignKey(nameof(Service))]
|
|
public int SERVICE_ID { get; set; }
|
|
}
|
|
}
|