From cfc59c9bb2b6095bf4616f8883b1f876feb34319 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 22 Oct 2017 13:09:08 +0200 Subject: [PATCH] =?UTF-8?q?Un=20bug=20a=20la=20propri=C3=A9t=C3=A9=20d'?= =?UTF-8?q?=C3=AAtre=20faux=20quand=20on=20lui=20associ=C3=A9=20une=20fonc?= =?UTF-8?q?tionnalit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yavsc/Models/IT/Fixing/Bug.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Yavsc/Models/IT/Fixing/Bug.cs b/Yavsc/Models/IT/Fixing/Bug.cs index 2470f758..8d49bd67 100644 --- a/Yavsc/Models/IT/Fixing/Bug.cs +++ b/Yavsc/Models/IT/Fixing/Bug.cs @@ -1,6 +1,7 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Attributes.Validation; +using Yavsc.Models.IT.Maintaining; namespace Yavsc.Models.IT.Fixing { @@ -9,7 +10,9 @@ namespace Yavsc.Models.IT.Fixing [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } - public long FeatureId { get; set; } + [ForeignKey("FeatureId")] + public virtual Feature False { get; set; } + public long? FeatureId { get; set; } [YaStringLength(2048)] public string Description { get; set; }