Browse Source

Update docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md

Co-authored-by: Engincan VESKE <enginveske@gmail.com>
pull/19759/head
Enes Doner 2 years ago
committed by GitHub
parent
commit
982c0630a7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md

2
docs/en/Community-Articles/2024-05-09-what-is-object-to-object-mapping/post.md

@ -88,7 +88,7 @@ public virtual async Task<PagedResultDto<CustomerGetDto>> GetListAsync(GetCustom
}
````
Update your `YourApplicationAutoMapperProfile` class so that `Customer` and `CustomerGetDto` entities can convert to each other.
After mapping the `Customer` entity to the `CustomerGetDto` class. Before running our application, we should define the mappings in the `*AutoMapperProfile` class in the `*.Application` project as follows:
````csharp
public class YourApplicationAutoMapperProfile : Profile

Loading…
Cancel
Save