July 2019
Intermediate to advanced
416 pages
10h 6m
English
We can now add database support to our PersonalDetails class. The first thing we are going to do is update the member variables and constructor to bring in the database support and store the list of people we want to display:
private readonly dataLayer: Database<PersonRecord>;private people: IPersonState[];
const tableBuilder : PersonalDetailsTableBuilder = new PersonalDetailsTableBuilder();this.dataLayer = new Database(tableBuilder.Build());