mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 07:26:09 +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] |         [Indexed] | ||||||
|         public string RootId { get; set; } |         public string RootId { get; set; } | ||||||
|         [DataMember] |         [DataMember] | ||||||
|  |         [Indexed] | ||||||
|  |         public string ParentId { get; set; } | ||||||
|  |         [DataMember] | ||||||
|         public string Name { get; set; } |         public string Name { get; set; } | ||||||
|         [DataMember] |         [DataMember] | ||||||
|         public int NameLevel { get; set; } |         public int NameLevel { get; set; } | ||||||
|  | @ -138,5 +141,7 @@ namespace AideDeJeuLib | ||||||
|         public string Source { get; set; } |         public string Source { get; set; } | ||||||
|         [DataMember] |         [DataMember] | ||||||
|         public virtual string Markdown { get; set; } |         public virtual string Markdown { get; set; } | ||||||
|  |         [DataMember] | ||||||
|  |         public string FullText { get; set; } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -75,6 +75,7 @@ namespace AideDeJeu.ViewModels | ||||||
|                         else if (IsNewItem(block)) |                         else if (IsNewItem(block)) | ||||||
|                         { |                         { | ||||||
|                             var subItem = ParseItem(source, ref enumerator, allItems); |                             var subItem = ParseItem(source, ref enumerator, allItems); | ||||||
|  |                             subItem.ParentId = GetNewAnchorId(source, currentItem.Name, allItems); | ||||||
| 
 | 
 | ||||||
|                             var propertyName = subItem.GetType().Name; |                             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
	
	 Yan Maniez
						Yan Maniez