Thinking about shunting most of the file parsing into db services since it should be done once
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using Dapper.Contrib.Extensions;
|
||||
|
||||
namespace fxl.codes.kisekae.Entities
|
||||
{
|
||||
[Table("cel_config")]
|
||||
public class CelConfigDto
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user