Files
asesidaa_GC-local-server-re…/GC-local-server-rewrite/models/CardBData.cs
T
Yuchen Ji c142516b00 Add 471 support.
Updated config
Updated readme
Add default values, remove null
2022-06-11 20:22:28 +08:00

30 lines
761 B
C#

using System.Xml.Serialization;
using ChoETL;
using SQLite.Net2;
namespace GCLocalServerRewrite.models;
[Table("card_bdata")]
public class CardBData : ICardIdModel
{
[PrimaryKey]
[Column("card_id")]
[ChoXmlElementRecordField(FieldName = "card_id")]
[XmlElement(ElementName = "card_id")]
public long CardId { get; set; }
[Column("bdata")]
[ChoXmlElementRecordField(FieldName = "bdata")]
[XmlElement(ElementName = "bdata")]
public string BData { get; set; } = string.Empty;
[Column("bdata_size")]
[ChoXmlElementRecordField(FieldName = "bdata_size")]
[XmlElement(ElementName = "bdata_size")]
public int BDataSize { get; set; }
public void SetCardId(long cardId)
{
CardId = cardId;
}
}