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.

Updated

Cheat sheet: Data Access Objects
Category
C#
Level
Journeyman
Tags
CRUD, c-sharp, Data Access Object (DAO), Repository Pattern, t-sql