Pjeckowski / StarWarsAPI

Simple REST API for managing StarWars characters
0 stars 0 forks source link

No need for duplicating entities in the persistance and domain projects. Imagine we have 50 tables or so. It contradicts the DRY principle. #3

Open opty-net opened 3 years ago

opty-net commented 3 years ago

https://github.com/Pjeckowski/StarWarsAPI/blob/8fa85a80f45c8a326ec4484430434912c8c487d7/StarWars.Repository/DbModels/Character.cs#L6

opty-net commented 3 years ago

Imagine we have 50 tables or so. It contradicts the DRY principle. Writing all the mappers would be a waste of time. It is possible not to have any dependency on EF in domain classes and have only one set of entities.