@@ -40,6 +40,12 @@ public string GetEntityRequestInterfaceDefinition(OdcmClass odcmClass)
4040// -------------------------------------------------------------
4141public void AppendEntityCreateAsyncMethodHeader(string entityName, string lowerCaseEntityName, StringBuilder stringBuilder, bool includeSendParams)
4242{
43+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
44+ if (entityName.EndsWith("Request"))
45+ {
46+ entityName = String.Concat(entityName, "Object");
47+ }
48+
4349 if (includeSendParams)
4450 {
4551 stringBuilder.Append(" ");
@@ -68,6 +74,13 @@ public string GetEntityCreateAsyncMethod(OdcmClass odcmClass)
6874 var stringBuilder = new StringBuilder();
6975
7076 var entityName = this.GetEntityNameString(odcmClass);
77+
78+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
79+ if (entityName.EndsWith("Request"))
80+ {
81+ entityName = String.Concat(entityName, "Object");
82+ }
83+
7184 var lowerCaseEntityName = entityName.ToLowerFirstChar();
7285
7386 this.AppendEntityCreateAsyncMethodHeader(entityName, lowerCaseEntityName, stringBuilder, false);
@@ -83,6 +96,12 @@ public string GetEntityCreateAsyncMethod(OdcmClass odcmClass)
8396
8497public void AppendDeleteAsyncMethodHeader(string deleteTargetString, StringBuilder stringBuilder, bool includeSendParams)
8598{
99+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
100+ if (deleteTargetString.EndsWith("Request"))
101+ {
102+ deleteTargetString = String.Concat(deleteTargetString, "Object");
103+ }
104+
86105 if (includeSendParams)
87106 {
88107 stringBuilder.Append(" ");
@@ -106,6 +125,12 @@ public void AppendDeleteAsyncMethodHeader(string deleteTargetString, StringBuild
106125
107126public string GetDeleteAsyncMethod(string deleteTargetString)
108127{
128+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
129+ if (deleteTargetString.EndsWith("Request"))
130+ {
131+ deleteTargetString = String.Concat(deleteTargetString, "Object");
132+ }
133+
109134 var stringBuilder = new StringBuilder();
110135
111136 this.AppendDeleteAsyncMethodHeader(deleteTargetString, stringBuilder, false);
@@ -170,6 +195,12 @@ public string GetEntityDeleteAsyncMethod(OdcmClass odcmClass)
170195
171196public void AppendGetAsyncMethodHeader(string entityName, StringBuilder stringBuilder, bool includeSendParams)
172197{
198+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
199+ if (entityName.EndsWith("Request"))
200+ {
201+ entityName = String.Concat(entityName, "Object");
202+ }
203+
173204 if (includeSendParams)
174205 {
175206 stringBuilder.Append(" ");
@@ -197,6 +228,12 @@ public string GetEntityGetAsyncMethod(OdcmClass odcmClass)
197228
198229 var entityName = this.GetEntityNameString(odcmClass);
199230
231+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
232+ if (entityName.EndsWith("Request"))
233+ {
234+ entityName = String.Concat(entityName, "Object");
235+ }
236+
200237 this.AppendGetAsyncMethodHeader(entityName, stringBuilder, false);
201238 stringBuilder.Append(Environment.NewLine);
202239 stringBuilder.AppendFormat(" System.Threading.Tasks.Task<{0}> GetAsync();", entityName);
@@ -213,6 +250,12 @@ public string GetEntityGetAsyncMethod(OdcmClass odcmClass)
213250
214251public void AppendUpdateAsyncMethodHeader(string entityName, string lowerCaseEntityName, StringBuilder stringBuilder, bool includeSendParams)
215252{
253+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
254+ if (entityName.EndsWith("Request"))
255+ {
256+ entityName = String.Concat(entityName, "Object");
257+ }
258+
216259 if (includeSendParams)
217260 {
218261 stringBuilder.Append(" ");
@@ -241,6 +284,13 @@ public string GetEntityUpdateAsyncMethod(OdcmClass odcmClass)
241284 var stringBuilder = new StringBuilder();
242285
243286 var entityName = this.GetEntityNameString(odcmClass);
287+
288+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
289+ if (entityName.EndsWith("Request"))
290+ {
291+ entityName = String.Concat(entityName, "Object");
292+ }
293+
244294 var lowerCaseEntityName = entityName.ToLowerFirstChar();
245295
246296 this.AppendUpdateAsyncMethodHeader(entityName, lowerCaseEntityName, stringBuilder, false);
@@ -264,6 +314,13 @@ public string GetEntityUpdateAsyncMethod(OdcmClass odcmClass)
264314
265315public string GetExpandExpressionMethod(string requestType, string underlyingType)
266316{
317+
318+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
319+ if (underlyingType.EndsWith("Request"))
320+ {
321+ underlyingType = String.Concat(underlyingType, "Object");
322+ }
323+
267324 var stringBuilder = new StringBuilder();
268325
269326 stringBuilder.Append(
@@ -296,6 +353,13 @@ public string GetExpandMethod(string entityRequest)
296353
297354public string GetSelectExpressionMethod(string requestType, string underlyingType)
298355{
356+
357+ // Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
358+ if (underlyingType.EndsWith("Request"))
359+ {
360+ underlyingType = String.Concat(underlyingType, "Object");
361+ }
362+
299363 var stringBuilder = new StringBuilder();
300364
301365 stringBuilder.Append(
0 commit comments