[WIP] Git
This commit is contained in:
@ -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; }
|
||||
|
||||
}
|
||||
|
@ -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}]";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user