using System;
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 bool IsRecycled { get; set; }
///
public DateTimeOffset? PublishDate { get; set; }
///
public DateTimeOffset? UnpublishDate { get; set; }
}
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; }
///
/// Whether this page is recycled or not
///
bool IsRecycled { get; set; }
///
/// Date when the page is published
///
DateTimeOffset? PublishDate { get; set; }
///
/// Date when the page is unpublished
///
DateTimeOffset? UnpublishDate { get; set; }
}
}