Converting to EF, need to work on TS

This commit is contained in:
Lani Aung
2021-11-19 23:04:15 -07:00
parent 1fd14ebafd
commit 744fc6bc57
43 changed files with 2159 additions and 542 deletions
+18
View File
@@ -0,0 +1,18 @@
using System.Collections.Generic;
using System.Linq;
using fxl.codes.kisekae.Entities;
namespace fxl.codes.kisekae.Models
{
public class KisekaeModel
{
public readonly IEnumerable<KeyValuePair<int, string>> Configurations;
public readonly string Name;
internal KisekaeModel(Kisekae kisekae)
{
Name = kisekae.FileName;
Configurations = kisekae.Configurations.Select(x => new KeyValuePair<int, string>(x.Id, x.Name)).ToArray();
}
}
}