Converting to EF, need to work on TS
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user