Database: Change bins once again...
This commit is contained in:
@ -3,7 +3,6 @@ using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
|
||||
namespace Elwig.Models {
|
||||
[Table("season"), PrimaryKey("Year")]
|
||||
@ -43,37 +42,6 @@ namespace Elwig.Models {
|
||||
}
|
||||
}
|
||||
|
||||
[Column("bin_1_name")]
|
||||
public string? Bin1Name { get; set; }
|
||||
|
||||
[Column("bin_2_name")]
|
||||
public string? Bin2Name { get; set; }
|
||||
|
||||
[Column("bin_3_name")]
|
||||
public string? Bin3Name { get; set; }
|
||||
|
||||
[Column("bin_4_name")]
|
||||
public string? Bin4Name { get; set; }
|
||||
|
||||
[Column("bin_5_name")]
|
||||
public string? Bin5Name { get; set; }
|
||||
|
||||
[Column("bin_6_name")]
|
||||
public string? Bin6Name { get; set; }
|
||||
|
||||
[Column("bin_7_name")]
|
||||
public string? Bin7Name { get; set; }
|
||||
|
||||
[Column("bin_8_name")]
|
||||
public string? Bin8Name { get; set; }
|
||||
|
||||
[Column("bin_9_name")]
|
||||
public string? Bin9Name { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string[] BinNames => (new string?[] { Bin1Name, Bin2Name, Bin3Name, Bin4Name, Bin5Name, Bin6Name, Bin7Name, Bin8Name, Bin9Name })
|
||||
.Where(n => n != null).Select(n => n ?? "").ToArray();
|
||||
|
||||
[ForeignKey("CurrencyCode")]
|
||||
public virtual Currency Currency { get; private set; }
|
||||
|
||||
|
Reference in New Issue
Block a user