Skip to content

Commit

Permalink
WIP: update create template
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Sep 7, 2021
1 parent 65eb9c1 commit d6befdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/Templates/Commands/Create/.cs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ namespace {namespace}
{
public class Create{itemname}Command: {itemname}Dto,IRequest<Result>, IMapFrom<{itemname}>
{

public void Mapping(Profile profile)
{
profile.CreateMap<{itemname}, Create{itemname}Command>().ReverseMap();
}
}


Expand Down
5 changes: 1 addition & 4 deletions src/Templates/Commands/Update/.cs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ namespace {namespace}
{
public class Update{itemname}Command: {itemname}Dto,IRequest<Result>, IMapFrom<{itemname}>
{
public void Mapping(Profile profile)
{
profile.CreateMap<{itemname}, Update{itemname}Command>().ReverseMap();
}

}

public class Update{itemname}CommandHandler : IRequestHandler<Update{itemname}Command, Result>
Expand Down

0 comments on commit d6befdd

Please sign in to comment.