aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/add-feature-template.sh12
1 files changed, 6 insertions, 6 deletions
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