try new way to create URLs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace zero.Core.Entities
|
||||
{
|
||||
public interface IRoutedEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Url for this entity
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,9 @@ namespace zero.Core.Entities
|
||||
/// </summary>
|
||||
public class Page : ZeroEntity, IPage
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public string Url { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public string ParentId { get; set; }
|
||||
|
||||
@@ -25,7 +28,7 @@ namespace zero.Core.Entities
|
||||
|
||||
|
||||
[Collection("Pages")]
|
||||
public interface IPage : IZeroEntity, IAppAwareEntity, IZeroDbConventions
|
||||
public interface IPage : IZeroEntity, IAppAwareEntity, IZeroDbConventions, IRoutedEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Id of the parent page
|
||||
|
||||
Reference in New Issue
Block a user