WIP, thinking about converting to EF
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace fxl.codes.kisekae.Entities
|
||||
{
|
||||
@@ -8,12 +9,14 @@ namespace fxl.codes.kisekae.Entities
|
||||
public int Id { get; set; }
|
||||
[Column("cel_id")] public int CelId { get; set; }
|
||||
[Column("config_id")] public int ConfigId { get; set; }
|
||||
public int Group { get; set; }
|
||||
public int Mark { get; set; }
|
||||
public int Fix { get; set; }
|
||||
public Set Sets { get; set; } = Set.Unset;
|
||||
public int Transparency { get; set; }
|
||||
public string Comment { get; set; }
|
||||
[Column("palette_id")] public int PaletteId { get; set; }
|
||||
[IgnoreDataMember] public int PaletteIndex { get; set; }
|
||||
[Column("palette_group")] public int PaletteGroup { get; set; }
|
||||
public int X { get; set; }
|
||||
public int Y { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace fxl.codes.kisekae.Entities
|
||||
{
|
||||
[Table("cel_render")]
|
||||
public class CelRenderDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[Column("cel_id")] public int CelId { get; set; }
|
||||
[Column("palette_id")] public int PaletteId { get; set; }
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user