Remove Veteran, Allow Millitary to be NULL

This commit is contained in:
2025-08-13 06:28:14 -07:00
parent 7f7d5f587d
commit 369d71d446
6 changed files with 24 additions and 16 deletions
+1 -2
View File
@@ -13,7 +13,7 @@ namespace BoredCareers.Entities {
public string City { get; set; } = "";
public bool IsActive { get; set; } = false;
public ResumeExperience[] Experience { get; set; } = [];
public ResumeMilitary Millitary { get; set; } = new ResumeMilitary();
public ResumeMilitary? Millitary { get; set; } = null;
public ResumeEducation[] Educations { get; set; } = [];
public ResumeSkill[] Skills { get; set; } = [];
public ResumeLanguage[] Languages { get; set; } = [];
@@ -46,7 +46,6 @@ namespace BoredCareers.Entities {
public class ResumeMilitary {
public int? ID { get; set; } // PK
public int ResumeID { get; set; } // FK
public bool Veteran { get; set; } = false;
public string Country { get; set; } = ""; // 2 Letter Country Code
public string Rank { get; set; } = "";
public DateTime DateStarted { get; set; } = new DateTime();
@@ -114,7 +114,6 @@ namespace BoredCareers.Services.DatabaseService {
if (reader == null) { break; }
int _id = reader.GetInt32("ID");
int _resumeid = reader.GetInt32("ResumeID");
bool _veteran = reader.GetBoolean("Veteran");
string _country = reader.GetString("Country");
string _rank = reader.GetString("Rank");
DateTime _datestarted = reader.GetDateTime("DateStarted");
@@ -123,7 +122,6 @@ namespace BoredCareers.Services.DatabaseService {
military = new ResumeMilitary() {
ID = _id,
ResumeID = _resumeid,
Veteran = _veteran,
Country = _country,
Rank = _rank,
DateStarted = _datestarted,