# Data Access Objects

Gather all the SQL for one table into a Data Access Object (DAO), so the rest of the program asks for models and never sees the database.

![Cheat sheet: Data Access Objects](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/ce7fd58205db4ddaa32b00193497eb86.webp)

- Category: C#
- Level: Journeyman
- Tags: CRUD, c-sharp, Data Access Object (DAO), Repository Pattern, t-sql
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/mapping-data-to-models-in-csharp-data-access-objects-cheat-sheet
