first commit
This commit is contained in:
28
BookHive/MappingProfiles/EntityToDtoMappings.cs
Normal file
28
BookHive/MappingProfiles/EntityToDtoMappings.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using AutoMapper;
|
||||
using BookHive.DTO.Author;
|
||||
using BookHive.DTO.Book;
|
||||
using BookHive.DTO.Loan;
|
||||
using BookHive.DTO.Member;
|
||||
using BookHive.DTO.Review;
|
||||
using BookHive.Models;
|
||||
|
||||
namespace BookHive.MappingProfiles;
|
||||
|
||||
public class EntityToDtoMappings : Profile
|
||||
{
|
||||
public EntityToDtoMappings()
|
||||
{
|
||||
CreateMap<Book, GetBookDto>();
|
||||
CreateMap<Book, GetBookDetailsDto>();
|
||||
|
||||
CreateMap<Author, GetAuthorDto>();
|
||||
CreateMap<Author, GetAuthorDetailsDto>();
|
||||
|
||||
CreateMap<Loan, GetLoanDto>();
|
||||
|
||||
CreateMap<Member, GetMemberDto>();
|
||||
CreateMap<Member, GetMemberDetailsDto>();
|
||||
|
||||
CreateMap<Review, GetReviewDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user