Un bug a la propriété d'être faux quand on lui associé une fonctionnalité

vnext
Paul Schneider 7 years ago
parent 352c867148
commit 03ea81e194
1 changed files with 4 additions and 1 deletions

@ -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; }

Loading…