From 167a4cab08549f119b811074a11a785a62dc3285 Mon Sep 17 00:00:00 2001 From: Enes Doner <95379442+EnesDONER@users.noreply.github.com> Date: Mon, 20 May 2024 17:18:12 +0300 Subject: [PATCH] Update docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md Co-authored-by: Engincan VESKE --- .../2024-05-09-what-is-object-to-object-mapping/post.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md b/docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md index 38d5650214..eb06bccf8e 100644 --- a/docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md +++ b/docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md @@ -23,7 +23,7 @@ DTOs are used to transfer data of objects from one place to another. We often ne } ```` -This code is repetitive, tedious to write. It violates DRY principles, makes your code very complex and reduces readability. Instead of using this approach, you can use the automapper which does the matching automatically. Here is a better code: +As can be seen here, it's repetitive and tedious to manually map an object to another similar object. Also, it violates the [DRY principle](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself), makes your code more complicated and reduces readability. Instead of manually mapping objects, you can use the [AutoMapper](https://automapper.org/) library to automatically map two objects' properties: ````csharp