Skip to content

Commit 70d4efe

Browse files
committed
fix format string
1 parent e83a5b9 commit 70d4efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Templates/CSharp/Base/CollectionRequest.Base.template.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public string GetPostAsyncMethodForReferencesRequest(OdcmProperty odcmProperty,
195195
stringBuilder.Append(" }");
196196
stringBuilder.Append(Environment.NewLine);
197197
stringBuilder.Append(Environment.NewLine);
198-
stringBuilder.AppendFormat(" var requestBody = new {0} {{ ODataId = string.Format(\"{{1}}/{1}{2}/{{2}}\", this.Client.BaseUrl, {3}.Id) }};", referenceRequestBodyTypeName, serviceNavigationProperty.Name, implicitNavigationProperty, sanitizedPropertyName);
198+
stringBuilder.AppendFormat(" var requestBody = new {0} {{ ODataId = string.Format(\"{{0}}/{1}{2}/{{1}}\", this.Client.BaseUrl, {3}.Id) }};", referenceRequestBodyTypeName, serviceNavigationProperty.Name, implicitNavigationProperty, sanitizedPropertyName);
199199
stringBuilder.Append(Environment.NewLine);
200200
stringBuilder.AppendFormat(" return this.SendAsync(requestBody, cancellationToken);");
201201
stringBuilder.Append(Environment.NewLine);

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph2/CallRecords/Requests/SegmentRefTypesCollectionReferencesRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public System.Threading.Tasks.Task AddAsync(Microsoft.Graph.EntityType3 entityTy
5959
throw new Microsoft.Graph.ServiceException(new Microsoft.Graph.Error { Code = "invalidRequest", Message = "ID is required to add a reference." });
6060
}
6161

62-
var requestBody = new Microsoft.Graph.ReferenceRequestBody { ODataId = string.Format("{1}/testTypes/{2}", this.Client.BaseUrl, entityType3.Id) };
62+
var requestBody = new Microsoft.Graph.ReferenceRequestBody { ODataId = string.Format("{0}/testTypes/{1}", this.Client.BaseUrl, entityType3.Id) };
6363
return this.SendAsync(requestBody, cancellationToken);
6464
}
6565

0 commit comments

Comments
 (0)