mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 14:35:45 +00:00
Test serialization yaml
This commit is contained in:
parent
c3deb8adc1
commit
bb6e12ede4
1 changed files with 7 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ using System.Text;
|
|||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using Xamarin.Forms;
|
||||
using YamlDotNet.Serialization;
|
||||
using YamlDotNet.Serialization.NamingConventions;
|
||||
|
||||
namespace AideDeJeuCmd
|
||||
{
|
||||
|
|
@ -318,8 +320,13 @@ namespace AideDeJeuCmd
|
|||
var monstersHD = await context.MonstersHD.ToListAsync();
|
||||
var monstersVO = await context.MonstersVO.ToListAsync();
|
||||
var spells = await context.Spells.ToListAsync();
|
||||
|
||||
var serializer = new SerializerBuilder().WithNamingConvention(new PascalCaseNamingConvention()).Build();
|
||||
var yaml = serializer.Serialize(spells.FirstOrDefault());
|
||||
Console.WriteLine(yaml);
|
||||
}
|
||||
|
||||
|
||||
return;
|
||||
await ReorderSpellsAsync();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue