Thinking about shunting most of the file parsing into db services since it should be done once

This commit is contained in:
Lani Aung
2021-10-27 07:58:18 -06:00
parent 804ccd0eeb
commit d52cc4b206
16 changed files with 271 additions and 113 deletions
+10
View File
@@ -0,0 +1,10 @@
using Dapper.Contrib.Extensions;
namespace fxl.codes.kisekae.Entities
{
[Table("cel_config")]
public class CelConfigDto
{
}
}
+3
View File
@@ -1,5 +1,8 @@
using Dapper.Contrib.Extensions;
namespace fxl.codes.kisekae.Entities
{
[Table("cel")]
public class CelDto : IKisekaeFile, IKisekaeParseable
{
public int Id { get; set; }
+9 -1
View File
@@ -1,10 +1,18 @@
using System.Collections.Generic;
using Dapper.Contrib.Extensions;
namespace fxl.codes.kisekae.Entities
{
[Table("configuration")]
public class ConfigurationDto : IKisekaeFile
{
public int Id { get; set; }
public int KisekaeId { get; set; }
public string Filename { get; set; }
public string Data { get; set; }
public int KisekaeId { get; set; }
public int? Height { get; set; }
public int? Width { get; set; }
public int? BorderIndex { get; set; }
public IEnumerable<CelConfigDto> Cels { get; set; }
}
}
+3 -2
View File
@@ -1,14 +1,15 @@
using System.Collections.Generic;
using Dapper.Contrib.Extensions;
namespace fxl.codes.kisekae.Entities
{
[Table("kisekae")]
public class KisekaeDto
{
public int Id { get; set; }
public string Name { get; set; }
public string Filename { get; set; }
public string Checksum { get; set; }
public IEnumerable<CelDto> Cels { get; set; }
public IEnumerable<ConfigurationDto> Configurations { get; set; }
}
}
+3
View File
@@ -1,5 +1,8 @@
using Dapper.Contrib.Extensions;
namespace fxl.codes.kisekae.Entities
{
[Table("palette")]
public class PaletteDto : IKisekaeFile, IKisekaeParseable
{
public int Id { get; set; }