[WIP] Git

This commit is contained in:
2018-06-25 15:18:37 +02:00
parent b1a3d94d23
commit 2017a5599a
17 changed files with 99 additions and 7803 deletions

View File

@ -15,11 +15,10 @@ namespace Yavsc.Server.Models.IT
[Required]
public string Name { get; set; }
[Required]
public string ProjectName { get; set;}
[ForeignKey("Name")]
public long ProjectId { get; set; }
[ForeignKey("ProjectId")]
public virtual Project TargetProject { get; set; }
}

View File

@ -20,5 +20,10 @@ namespace Yavsc.Server.Models.IT.SourceCode
[ForeignKey("OwnerId")]
public virtual ApplicationUser Owner { get; set; }
public override string ToString()
{
return $"[Git ref {Path} {Branch} {Url}]";
}
}
}