refact and login
This commit is contained in:
parent
acc34aeee4
commit
e042e34bf7
78 changed files with 2492 additions and 50576 deletions
|
|
@ -24,7 +24,7 @@ namespace Yavsc.Server.Models.IT
|
|||
/// As a side effect, there's no project without valid git reference in db.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Version { get; set; }
|
||||
|
|
@ -33,7 +33,7 @@ namespace Yavsc.Server.Models.IT
|
|||
public virtual List<ProjectBuildConfiguration> Configurations { get; set; }
|
||||
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public long GitId { get; set; }
|
||||
|
||||
[ForeignKey("GitId")]
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Yavsc.Server.Models.IT
|
|||
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
public long ProjectId { get; set; }
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace Yavsc.Server.Models.IT.SourceCode
|
|||
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Path { get; set; }
|
||||
|
||||
[YaStringLength(2048)]
|
||||
|
|
@ -30,4 +30,4 @@ namespace Yavsc.Server.Models.IT.SourceCode
|
|||
return $"[Git ref {Path} {Branch} {Url}]";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue