From 1691baf054b6695da35c9d29032d9b3934c1f979 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 11 May 2021 12:03:11 +0300 Subject: Renamed mapping classes to have the name of their layer --- tools/add-feature-template.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/add-feature-template.sh b/tools/add-feature-template.sh index 9fea26a..d283563 100755 --- a/tools/add-feature-template.sh +++ b/tools/add-feature-template.sh @@ -169,16 +169,16 @@ done subdir="${dir}/Configurations" mappings=("Create${feature_name}ServiceModel, $feature_name" "$feature_name, ${feature_name}ServiceModel" "Edit${feature_name}ServiceModel, $feature_name") -cat > $subdir/${feature_name}Mappings.cs<< EOF +cat > $subdir/Service${feature_name}Mappings.cs<< EOF using AutoMapper; using $project_name.Data.Models; using $project_name.Services.Models.$feature_name; namespace $project_name.Services.Configurations { - public class ${feature_name}Mappings : Profile + public class Service${feature_name}Mappings : Profile { - public ${feature_name}Mappings() + public Service${feature_name}Mappings() { $( for map in "${mappings[@]}"; do @@ -439,16 +439,16 @@ EOF subdir="${dir}/Configurations" mappings=("${feature_name}ServiceModel, ${feature_name}ViewModel" "Create${feature_name}ViewModel, Create${feature_name}ServiceModel" "${feature_name}ServiceModel, Edit${feature_name}ViewModel" "Edit${feature_name}ViewModel, Edit${feature_name}ServiceModel") -cat > $subdir/${feature_name}Mappings.cs<< EOF +cat > $subdir/Controller${feature_name}Mappings.cs<< EOF using AutoMapper; using $project_name.Services.Models.$feature_name; using $project_name.Web.Models.$feature_name; namespace $project_name.Web.Configurations { - public class ${feature_name}Mappings : Profile + public class Controller${feature_name}Mappings : Profile { - public ${feature_name}Mappings() + public Controller${feature_name}Mappings() { $( for map in "${mappings[@]}"; do -- cgit v1.2.3