refabriqué

vnext
Paul Schneider 8 years ago
parent 60dfa62917
commit 9bb246e4c0
6 changed files with 32 additions and 6 deletions

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Yavsc.Models.Haircut namespace Yavsc.Models.Haircut
{ {
@ -16,7 +16,7 @@ namespace Yavsc.Models.Haircut
public long Id { get; set; } public long Id { get; set; }
[Display(Name="Longueur de cheveux")] [Display(Name="Longueur de cheveux")]
public Haircut.HairLength Length { get; set; } public HairLength Length { get; set; }
[Display(Name="Pour qui")] [Display(Name="Pour qui")]
public HairCutGenders Gender { get; set; } public HairCutGenders Gender { get; set; }
@ -34,12 +34,13 @@ namespace Yavsc.Models.Haircut
[Display(Name="Shampoing")] [Display(Name="Shampoing")]
public bool Shampoo { get; set; } public bool Shampoo { get; set; }
[Display(Name="Couleurs")] [Display(Name="Couleurs"),JsonIgnore]
public virtual List<HairTaint> Taints { get; set; } public virtual List<HairTaint> Taints { get; set; }
[Display(Name="Soins")] [Display(Name="Soins")]
public bool Cares { get; set; } public bool Cares { get; set; }
} }
} }

@ -29,5 +29,8 @@
<Content Include="Models\Haircut\HairLength.cs" /> <Content Include="Models\Haircut\HairLength.cs" />
<Content Include="gulpfile.js" /> <Content Include="gulpfile.js" />
<Content Include="Views\Home\Index.cshtml" /> <Content Include="Views\Home\Index.cshtml" />
<Content Include="Models\Haircut\HairCutGenders.cs" />
<Content Include="Models\Haircut\HairTechnos.cs" />
<Content Include="Models\Haircut\HairTaint.cs" />
</ItemGroup> </ItemGroup>
</Project> </Project>

@ -0,0 +1,11 @@
namespace YavscLib.HairCut
{
public enum HairLength : int
{
HalfLong,
Short = 1,
Long
}
}

@ -4,6 +4,16 @@ namespace YavscLib.HairCut
{ {
long Id { get; set; } long Id { get; set; }
int Length { get; set; } int Length { get; set; }
int Gender { get; set; }
bool Cut { get; set; }
int Dressing { get; set; }
int Tech { get; set; }
bool Shampoo { get; set; }
long[] Taints { get; set; }
bool Cares { get; set; }
} }
} }

@ -112,6 +112,7 @@
<Content Include="project.json" /> <Content Include="project.json" />
<Content Include="HairCut\IHairCutQuery.cs" /> <Content Include="HairCut\IHairCutQuery.cs" />
<Content Include="HairCut\IPrestation.cs" /> <Content Include="HairCut\IPrestation.cs" />
<Content Include="HairCut\HairLength.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

Loading…