6 ms·
One does not simply retrieve a record from the database. One must first declare a type to represent the database's view of the record and copy it into a reposit
by bharam 6y ago
One does not simply retrieve a record from the database. One must first declare a type to represent the database's view of the record and copy it into a repository layer. Next a type shall be declared to translate the repository's view of the record to a domain layer. Another type shall translate the domain layer's view of the record to the controller layer's view...and so on.