1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +00:00

Ajout du ParentId, sauf pour les roots

This commit is contained in:
Yan Maniez 2018-10-24 13:01:14 +02:00
parent 0ebf411b17
commit 2aec1c8c37
3 changed files with 6 additions and 0 deletions

View file

@ -106,6 +106,9 @@ namespace AideDeJeuLib
[Indexed]
public string RootId { get; set; }
[DataMember]
[Indexed]
public string ParentId { get; set; }
[DataMember]
public string Name { get; set; }
[DataMember]
public int NameLevel { get; set; }
@ -138,5 +141,7 @@ namespace AideDeJeuLib
public string Source { get; set; }
[DataMember]
public virtual string Markdown { get; set; }
[DataMember]
public string FullText { get; set; }
}
}

View file

@ -75,6 +75,7 @@ namespace AideDeJeu.ViewModels
else if (IsNewItem(block))
{
var subItem = ParseItem(source, ref enumerator, allItems);
subItem.ParentId = GetNewAnchorId(source, currentItem.Name, allItems);
var propertyName = subItem.GetType().Name;

Binary file not shown.