Typically, for a data access layer, the following methods exist:
Tuple<int, IList<Media>> GetAllWithFilter(int? page, string folderName, string title, string fileName, string author, string keywordTitle, int type, int fileType, int rowsPerPage, Guid keywordId, string sortField = null, string sortDir = null);
And it gets messy and messy every time a new property is added
What are good methods to make these methods readable and maintainable?
thank
source
share