catalog index
This commit is contained in:
parent
f6fa7a0ec9
commit
d8bfdc293d
4 changed files with 36 additions and 34 deletions
|
|
@ -14,7 +14,7 @@ namespace isnd.Data.Catalog
|
|||
|
||||
|
||||
[JsonProperty("count")]
|
||||
public int Count { get => Items.Count; }
|
||||
public int Count { get => Items?.Count ?? 0; }
|
||||
public string CommitId { get; set; }
|
||||
public DateTime CommitTimeStamp { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@ namespace isnd.Data
|
|||
public virtual Package Package { get; set; }
|
||||
|
||||
[Required][JsonIgnore]
|
||||
[ForeignKey("LatestCommit")]
|
||||
public long CommitNId { get; set ; }
|
||||
|
||||
[NotMapped]
|
||||
|
||||
public string CommitId { get => CommitNId.ToString(); }
|
||||
|
||||
[ForeignKey("CommitNId")]
|
||||
|
||||
public virtual Commit LatestCommit{ get; set; }
|
||||
public string NugetLink => $"/package/{PackageId}/{FullString}/{PackageId}-{FullString}.nupkg";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue