try new way to create URLs

This commit is contained in:
2020-10-22 00:32:44 +02:00
parent 2671d34f4e
commit bf8a0664ef
6 changed files with 309 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace zero.Core.Entities
{
public interface IRoutedEntity
{
/// <summary>
/// Url for this entity
/// </summary>
public string Url { get; set; }
}
}
+4 -1
View File
@@ -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