From 4f4c58d1feb668c37cad930a4c6c70902cc324b2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 12 May 2021 14:09:24 +0300 Subject: Fixed models having opening bracket at bad places --- tools/add-feature-template.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/add-feature-template.sh b/tools/add-feature-template.sh index 1ec562f..4d83354 100755 --- a/tools/add-feature-template.sh +++ b/tools/add-feature-template.sh @@ -24,8 +24,10 @@ dir="../$project_name/Data" cat > $dir/Models/$feature_name.cs<< EOF using System; -namespace $project_name.Data.Models { - public class $feature_name { +namespace $project_name.Data.Models +{ + public class $feature_name + { public Guid Id { get; set; } $( for feature in "${features[@]}"; do @@ -145,8 +147,10 @@ do cat > $subdir/$model${feature_name}ServiceModel.cs<< EOF using System; -namespace $project_name.Services.Models.$feature_name { - public class $model${feature_name}ServiceModel {$( +namespace $project_name.Services.Models.$feature_name +{ + public class $model${feature_name}ServiceModel + {$( if [ ! -z $model ]; then echo -e "\n\t\tpublic Guid Id { get; set; }" fi @@ -222,8 +226,10 @@ do cat > $subdir/$model${feature_name}WebModel.cs<< EOF using System; -namespace $project_name.Web.Models.$feature_name { - public class $model${feature_name}WebModel {$( +namespace $project_name.Web.Models.$feature_name +{ + public class $model${feature_name}WebModel + {$( if [ ! -z $model ]; then echo -e "\n\t\tpublic Guid Id { get; set; }" fi -- cgit v1.2.3