tendences, types de lieux et refabrique de code

This commit is contained in:
Paul Schneider 2017-01-02 16:31:43 +01:00
commit 104aec9321
31 changed files with 4560 additions and 52 deletions

View file

@ -2,6 +2,7 @@ using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
namespace Yavsc.Models.Booking
{
@ -26,6 +27,10 @@ namespace Yavsc.Models.Booking
set;
}
public LocationType LocationType {
set;
get;
}
public string Reason { get; set; }
public BookQuery()

View file

@ -0,0 +1,12 @@
using System.Collections.Generic;
namespace Yavsc.Models.Booking {
public class MusicalPreference : MusicalTendency {
public long OwnerId { get; set; }
public int Rate { get; set; }
}
}

View file

@ -0,0 +1,21 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Booking {
public class MusicalTendency {
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {get; set; }
[MaxLength(255),Required]
public string Name { get ; set; }
}
}