WIP page leaf

This commit is contained in:
Paul Schneider 2022-07-10 17:05:05 +01:00
commit 7f9984b059
28 changed files with 164 additions and 75 deletions

View file

@ -6,8 +6,7 @@ using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using isnd.Data;
using isnd.Data.ApiKeys;
using isnd.Data.Catalog;
using isnd.Data.Historic;
using isnd.Data.Packages;
namespace isnd.Data
{

View file

@ -1,7 +1,8 @@
using System;
using isnd.Interfaces;
using Newtonsoft.Json;
namespace isnd.Data.Catalog
namespace isnd.Data.Packages.Catalog
{
public class PageRef : IObject
{

View file

@ -1,6 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using isnd.Data.Catalog;
using isnd.Data.Packages;
using isnd.Data.Packages.Catalog;
namespace isnd.Data.Historic
{

View file

@ -1,11 +0,0 @@
using System;
namespace isnd.Data
{
public class NewReleaseInfo
{
public string Version { get; set; }
public string ChangeLog { get; set; }
public DateTime BuildDate { get; set; }
}
}

View file

@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using isnd.Interfaces;
namespace isnd.Data.Catalog
namespace isnd.Data.Packages.Catalog
{
public class CatalogIndex : IObject
{

View file

@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using isnd.Interfaces;
using Newtonsoft.Json;
namespace isnd.Data.Catalog
namespace isnd.Data.Packages.Catalog
{
public class CatalogLeaf : IObject
{

View file

@ -1,7 +1,7 @@
using System;
using Newtonsoft.Json;
namespace isnd.Data.Catalog
namespace isnd.Interfaces
{
public interface IObject
{

View file

@ -1,4 +1,4 @@
namespace isnd.Data.Catalog
namespace isnd.Data.Packages.Catalog
{
public class PackageDetail : CatalogLeaf
{

View file

@ -1,8 +1,9 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
using isnd.Interfaces;
using Newtonsoft.Json;
namespace isnd.Data.Catalog
namespace isnd.Data.Packages.Catalog
{
/// <summary>
/// An presence of package in a catalog,

View file

@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using isnd.Interfaces;
using Newtonsoft.Json;
namespace isnd.Data.Catalog
namespace isnd.Data.Packages.Catalog
{
public class Page : IObject
{

View file

@ -3,8 +3,9 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using isnd.Interfaces;
namespace isnd.Data.Catalog
namespace isnd.Data.Packages
{
public enum PackageAction
{

View file

@ -2,16 +2,16 @@ using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using isnd.Data.Catalog;
using isnd.Interfaces;
using Newtonsoft.Json;
namespace isnd.Data
namespace isnd.Data.Packages
{
public class Package : IObject
{
[Key][Required]
[StringLength(1024)]
public string Id { get; set; }
public string Id { get; set; }
[Required]
[ForeignKey("Owner")]

View file

@ -1,7 +1,8 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using isn.abst;
using isnd.Data.Catalog;
using isnd.Data.Packages;
using isnd.Data.Packages.Catalog;
using Newtonsoft.Json;
namespace isnd.Data