Implement BuCol

This commit is contained in:
2024-09-24 22:32:13 +02:00
parent 800dcf23ba
commit efa5d452ea
8 changed files with 188 additions and 35 deletions

View File

@ -10,7 +10,7 @@ public class Planet
public required string Name { get; set; }
[Index(1)]
public string? Owner { get; set; }
public string Owner { get; set; } = String.Empty;
[Index(2)]
public string StarbaseType { get; set; } = String.Empty;
@ -240,7 +240,7 @@ public class Planet
if (dbPlanet.Name != Name)
throw new InvalidOperationException($"DB Planet Name {dbPlanet.Name} does not macth the CSV Planet Name {Name}");
dbPlanet.OwnerId = Owner != "" ? Owner : null;
dbPlanet.OwnerId = Owner;
dbPlanet.StarbaseType = StarbaseType;
dbPlanet.ReportAge = ReportAge;
dbPlanet.Population = Population;