Catalog packages

This commit is contained in:
Paul Schneider 2021-08-29 00:08:34 +01:00
commit b7dae240cd
10 changed files with 413 additions and 41 deletions

View file

@ -26,7 +26,7 @@ namespace isnd.Data.Catalog
public PackageAction Action { get; set; }
[NotMapped]
public string CommitId { get => Id.ToString(); }
public string CommitId { get => Id.ToString(); }
[NotMapped]
public DateTime CommitTimeStamp { get => TimeStamp; }

View file

@ -38,10 +38,14 @@ namespace isnd.Data.Catalog
[JsonProperty("nuget:version")]
public string Version { get; set; }
[JsonProperty("commitId")]
public string CommitId { get; set; }
[ForeignKey("CommitId")]
[ForeignKey("CommitId"), JsonIgnore]
public virtual Commit LastCommit { get; set; }
[JsonProperty("commitTimeStamp")]
public DateTime CommitTimeStamp { get; set; }
}
}