remove v3=>4 migration work-arounds
This commit is contained in:
parent
57fa1bd763
commit
e59ab9b483
6 changed files with 9 additions and 30 deletions
|
|
@ -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}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue