Skip to content

11.3 Adapt PointDao

  1. Make PointDao inherit from AbstractDao, remove the _dbAccess attribute, 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
    }
    
  2. The _dbAccess attribute is now inherited from AbstractDao.