Skip to content

Commit cdd7ef9

Browse files
mmainermmainer
authored andcommitted
Removed the ToCheckedCase for the return type name as GetTypeString() already does this by default. Fixes an issue where Edm.Boolean was turned into Bool, instead of bool for csharp. We also now get string instead of String.
1 parent 6be8c55 commit cdd7ef9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Templates/CSharp/Requests/IMethodRequest.cs.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var isComposable = method.IsComposable;
1313
var methodName = method.Name.Substring(method.Name.IndexOf('.') + 1).ToCheckedCase();
1414
var requestType = entityName + methodName + "Request";
1515

16-
var returnEntityType = method.ReturnType == null ? null : method.ReturnType.Name.GetTypeString().ToCheckedCase();
16+
var returnEntityType = method.ReturnType == null ? null : method.ReturnType.Name.GetTypeString();
1717
var returnEntityParameter = string.Empty;
1818
if (returnEntityType != null) {returnEntityParameter = returnEntityType.ToLower();}
1919
var returnTypeObject = method.ReturnType == null ? null : method.ReturnType.AsOdcmClass();

Templates/CSharp/Requests/MethodRequest.cs.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var isComposable = method.IsComposable;
1313
var methodName = method.Name.Substring(method.Name.IndexOf('.') + 1).ToCheckedCase();
1414
var requestType = entityName + methodName + "Request";
1515

16-
var returnEntityType = method.ReturnType == null ? null : method.ReturnType.Name.GetTypeString().ToCheckedCase();
16+
var returnEntityType = method.ReturnType == null ? null : method.ReturnType.Name.GetTypeString();
1717
var returnEntityParameter = string.Empty;
1818
if (returnEntityType != null) {returnEntityParameter = returnEntityType.ToLower();}
1919

0 commit comments

Comments
 (0)