21 lines
549 B
C#
21 lines
549 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EventVisitorDatabase.Entities
|
|
{
|
|
public class OrganizerEvent
|
|
{
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public int EventId { get; set; }
|
|
[Required]
|
|
public int OrganizerId { get; set; }
|
|
public virtual EventEntity Event { get; set; } = new();
|
|
public virtual OrganizerEntity Organizer { get; set; } = new();
|
|
}
|
|
}
|