Creation des Challonges a partir des Event WordPress
This commit is contained in:
16
LaDOSE.Src/LaDOSE.Entity/Wordpress/WPBooking.cs
Normal file
16
LaDOSE.Src/LaDOSE.Entity/Wordpress/WPBooking.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
17
LaDOSE.Src/LaDOSE.Entity/Wordpress/WPEvent.cs
Normal file
17
LaDOSE.Src/LaDOSE.Entity/Wordpress/WPEvent.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
15
LaDOSE.Src/LaDOSE.Entity/Wordpress/WPUser.cs
Normal file
15
LaDOSE.Src/LaDOSE.Entity/Wordpress/WPUser.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user