mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +00:00
Ajout du ParentId, sauf pour les roots
This commit is contained in:
parent
0ebf411b17
commit
2aec1c8c37
3 changed files with 6 additions and 0 deletions
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
BIN
Data/library.db
BIN
Data/library.db
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue