CourseWork_Hotel/Hotel/HotelDataBaseImplement/Models/Member.cs

30 lines
776 B
C#

using HotelDataModels.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace HotelDataBaseImplement.Models
{
public class Member : IMemberModel
{
[Required]
public string MemberFIO { get; set; } = string.Empty;
[Required]
public string Citizenship { get; set; } = string.Empty;
public int OrganiserId { get; private set; }
public int Id { get; private set; }
public virtual Organiser Organiser { get; set; }
[ForeignKey("MemberId")]
public virtual List<MealPlanMember> MealPlanMember { get; set; }
[ForeignKey("MemberId")]
public virtual List<ConferenceMember> ConferenceMember { get; set; }
}
}