using Microsoft.AspNetCore.Mvc; using System; using zero.Core.Attributes; namespace zero.Core.Entities { /// /// A page can consist of unlimited properties and be rendered as you wish /// The backoffice rendering is done by an IRenderer /// public class Page : ZeroEntity, IPage { /// public string ParentId { get; set; } /// public string PageTypeAlias { get; set; } /// public string AppId { get; set; } /// public DateTimeOffset? PublishDate { get; set; } /// public DateTimeOffset? UnpublishDate { get; set; } } [Collection("Pages")] public interface IPage : IZeroEntity, IAppAwareEntity, IZeroDbConventions { /// /// Id of the parent page /// string ParentId { get; set; } /// /// Alias of the used page type /// string PageTypeAlias { get; set; } /// /// Date when the page is published /// DateTimeOffset? PublishDate { get; set; } /// /// Date when the page is unpublished /// DateTimeOffset? UnpublishDate { get; set; } } }