18 lines
483 B
C#
18 lines
483 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BeautySalonDatabaseImplement.Models
|
|
{
|
|
public class MasterService
|
|
{
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public int MasterId { get; set; }
|
|
[Required]
|
|
public int ServiceId { get; set; }
|
|
[Required]
|
|
public double Wage { get; set; }
|
|
public virtual Service Service { get; set; } = new();
|
|
public virtual Master Master { get; set; } = new();
|
|
}
|
|
}
|