Skip to content

10.1 Summary

  1. ADO.NET is used to communicate with database management systems (equivalent to JDBC in Java).
  2. DAO stands for Data Access Object and is used to handle SQL statements correctly.
  3. Specific tasks are placed in their own classes:
    • DbAccess is used for setting up and maintaining the connection between C# and the DBMS.
    • Entity DAOs (e.g., PointDao, CircleDao) are entity-specific DAOs used to execute SQL statements relevant to that entity.
    • AbstractDao is used for attributes and methods shared by the individual entity DAOs.
    • These classes go in a Data or Database folder.