remove v3=>4 migration work-arounds

This commit is contained in:
Robert McRackan 2021-09-03 13:42:58 -04:00
parent 57fa1bd763
commit e59ab9b483
6 changed files with 9 additions and 30 deletions

View file

@ -9,8 +9,6 @@ namespace DataLayer
public Book Book { get; private set; }
public DateTime DateAdded { get; private set; }
// immutable-ish. should be immutable. mutability is necessary for v3 => v4 upgrades
public string Account { get; private set; }
private LibraryBook() { }
@ -24,10 +22,6 @@ namespace DataLayer
Account = account;
}
// needed for v3 => v4 upgrade
public void UpdateAccount(string account)
=> Account ??= account;
public override string ToString() => $"{DateAdded:d} {Book}";
}
}