Saving to DB, need to render

This commit is contained in:
Lani Aung
2021-11-02 18:33:07 -06:00
parent d52cc4b206
commit 16dfc040a4
18 changed files with 318 additions and 212 deletions
+7 -6
View File
@@ -1,18 +1,19 @@
using System.Collections.Generic;
using Dapper.Contrib.Extensions;
using System.ComponentModel.DataAnnotations.Schema;
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? Height { get; set; }
public int? Width { get; set; }
public int? BorderIndex { get; set; }
public IEnumerable<CelConfigDto> Cels { get; set; }
[Column("border_index")] public int? BorderIndex { get; set; }
public List<CelConfigDto> Cels { get; set; } = new();
public List<PaletteDto> Palettes { get; set; } = new();
public int Id { get; set; }
[Column("kisekae_id")] public int KisekaeId { get; set; }
public string Filename { get; set; }
}
}