mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-22 18:13:23 +00:00
Bof
This commit is contained in:
parent
9497c8522f
commit
203a192e53
18 changed files with 87 additions and 52 deletions
|
|
@ -244,6 +244,10 @@ namespace AideDeJeu.ViewModels
|
|||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.WriteLine(tag);
|
||||
}
|
||||
//var type = Type.GetType(name);
|
||||
//if (type != null)
|
||||
//{
|
||||
|
|
@ -287,7 +291,7 @@ namespace AideDeJeu.ViewModels
|
|||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
else if(parsedComment.Name != "br")
|
||||
{
|
||||
Debug.WriteLine(parsedComment.Name);
|
||||
}
|
||||
|
|
@ -336,6 +340,10 @@ namespace AideDeJeu.ViewModels
|
|||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.WriteLine(tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using Markdig;
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
|
@ -317,6 +318,10 @@ namespace AideDeJeuCmd
|
|||
var item = store.ToItem(source, md, store._AllItems);
|
||||
if (item != null)
|
||||
{
|
||||
if(item.NewId == "hd_aasimar_aasimar.md")
|
||||
{
|
||||
Debug.WriteLine("");
|
||||
}
|
||||
var anchors = new Dictionary<string, Item>();
|
||||
//MakeAnchors(source, anchors, item);
|
||||
item.RootId = $"{source}.md";
|
||||
|
|
@ -358,8 +363,24 @@ namespace AideDeJeuCmd
|
|||
}
|
||||
await context.Database.EnsureCreatedAsync();
|
||||
|
||||
var flags = new Dictionary<string, bool>();
|
||||
foreach(var it in store._AllItems.Values)
|
||||
{
|
||||
if(flags.ContainsKey(it.Id))
|
||||
{
|
||||
Debug.WriteLine(it);
|
||||
}
|
||||
flags[it.Id] = true;
|
||||
}
|
||||
await context.Items.AddRangeAsync(store._AllItems.Values);
|
||||
await context.SaveChangesAsync();
|
||||
try
|
||||
{
|
||||
await context.SaveChangesAsync();
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
Debug.WriteLine(ex);
|
||||
}
|
||||
|
||||
var itemsSRD = await context.Items.Where(item => (item.Source != null && item.Source.Contains("SRD"))).ToListAsync();
|
||||
var monsters = await context.Monsters.ToListAsync();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue