tar
Basics (How does an enterprise do it?) DAL Entity mapper
when you apply the users input to create/update an entity, you usually do this directly. ofc, you could add a particular ctor or mapping method within the entity class if it makes things easier for you. but you do not need additional mapper classes.
21 replies
Basics (How does an enterprise do it?) DAL Entity mapper
this looks strange to me. wouldn't you check if the corresponding entry exists (e.g.
...FirstOrDefault(x => x.ID == ...
) by which you would fetch the existing entry and then just use a mapping method of this entity instead of creating own mapper classes interfaces and more bloat?21 replies