Files
mixtape/zero.Core/Pages/Models/Page.cs
T

27 lines
722 B
C#
Raw Normal View History

2021-11-20 13:52:28 +01:00
namespace zero.Pages;
2021-11-19 16:11:12 +01:00
/// <summary>
/// A page can consist of unlimited properties and be rendered as you wish
/// The backoffice rendering is done by an IRenderer
/// </summary>
[RavenCollection("Pages")]
2021-12-01 15:54:11 +01:00
public class Page : ZeroEntity, ISupportsTrees
2021-11-19 16:11:12 +01:00
{
/// <summary>
/// Use this field (when filled out) instead of the alias for URL generation
/// </summary>
public string UrlAlias { get; set; }
/// <inheritdoc />
public string ParentId { get; set; }
/// <summary>
/// Date when the page is published
/// </summary>
public DateTimeOffset? PublishDate { get; set; }
/// <summary>
/// Date when the page is unpublished
/// </summary>
public DateTimeOffset? UnpublishDate { get; set; }
}