Creation des Challonges a partir des Event WordPress

This commit is contained in:
2018-10-08 23:33:18 +02:00
parent 70b5ea54f7
commit 39075051b2
10 changed files with 264 additions and 114 deletions

View File

@@ -0,0 +1,16 @@
namespace LaDOSE.Entity.Wordpress
{
public class WPBooking
{
//# WPEventId, WPUserId, Message, Meta
public int WPEventId { get; set; }
public WPEvent WPEvent { get; set; }
public int WPUserId { get; set; }
public WPUser WPUser { get; set; }
public string Message { get; set; }
public string Meta { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace LaDOSE.Entity.Wordpress
{
public class WPEvent
{
[Key]
// Id, Name, Slug, Date
public int Id { get; set; }
public string Name { get; set; }
public string Slug { get; set; }
public string Date { get; set; }
public virtual IEnumerable<WPBooking> WPBookings { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace LaDOSE.Entity.Wordpress
{
public class WPUser
{
[Key]
public int Id { get; set; }
public string Name { get; set; }
public string WPUserId { get; set; }
public string WPMail { get; set; }
public virtual IEnumerable<WPBooking> WPBookings { get; set; }
}
}