control projects

This commit is contained in:
2018-06-24 00:20:46 +02:00
parent bbb750c47a
commit e56547d25f
4 changed files with 52 additions and 102 deletions

View File

@ -19,7 +19,7 @@ namespace Yavsc.Server.Models.IT
[Required]
public string ProjectName { get; set;}
[ForeignKey("ProjectName")]
[ForeignKey("Name")]
public virtual Project TargetProject { get; set; }
}
@ -33,8 +33,6 @@ namespace Yavsc.Server.Models.IT
public override long Id { get; set ; }
public string OwnerId { get; set; }
public string LocalRepo { get; set; }
/// <summary>
/// This field is something like a key,
/// since it is required non null,
@ -65,8 +63,6 @@ namespace Yavsc.Server.Models.IT
return bill;
}
public string Description { get; set; }
public override string GetDescription()