Skip to content

Commit 9bf267d

Browse files
Merge pull request #86 from microsoftgraph/enumFlags
Cannot set OdcmObject.Name. Fixed per Caitlins review.
2 parents 703e6eb + 3badbb5 commit 9bf267d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Templates/CSharp/Requests/EntityRequest.cs.tt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,21 @@ namespace <#=this.GetNamespaceName(entity)#>
6666
// This change supports the scenario where we have an entity based model whose name ends with "Request".
6767
// This will disambiguate with Request objects that are created for models.
6868
var thisEntity_Name = entity.Name;
69-
var thisEntityName = entityName;
7069

7170
// Special case for when an entity name ends with "Request". Associated with the change in EntityType.cs.tt
7271
if (entityName.EndsWith("Request"))
7372
{
7473
thisEntity_Name = String.Concat(entity.Name, "Object");
75-
thisEntityName = String.Concat(entityName, "Object");
74+
entityName = String.Concat(entityName, "Object");
7675
}
7776

7877

7978
#>
8079
/// <summary>
8180
/// Initializes any collection properties after deserialization, like next requests for paging.
8281
/// </summary>
83-
/// <param name="<#=thisEntity_Name#>ToInitialize">The <see cref="<#=thisEntityName#>"/> with the collection properties to initialize.</param>
84-
private void InitializeCollectionProperties(<#=thisEntityName#> <#=thisEntity_Name#>ToInitialize)
82+
/// <param name="<#=thisEntity_Name#>ToInitialize">The <see cref="<#=entityName#>"/> with the collection properties to initialize.</param>
83+
private void InitializeCollectionProperties(<#=entityName#> <#=thisEntity_Name#>ToInitialize)
8584
{
8685
<#
8786
var navigationCollectionProperties = entity.Properties.Where(property => property.IsCollection() && property.IsNavigation());

0 commit comments

Comments
 (0)