Repository or query object? Giving your data access a home
SQL in view models, a DbContext in every class and validation rules hidden in stored procedures. Why a data access layer matters, when a repository fits, when query objects are the better choice, and the one rule both share — no business logic below the line.