11.3 Adapt PointDao
-
Make
PointDaoinherit fromAbstractDao, remove the_dbAccessattribute, and adjust the constructor:1 2 3 4 5 6 7
public class PointDao : AbstractDao { public PointDao(DbAccess dbAccess) : base(dbAccess) { } // ... rest of the class uses _dbAccess from base } -
The
_dbAccessattribute is now inherited fromAbstractDao.