55var prop = host.CurrentType.AsOdcmProperty();
66var collectionRequest = this.GetPropertyCollectionWithReferencesRequestName(prop);
77var collectionPage = string.Concat(prop.Class.Name.ToCheckedCase(), prop.Name.ToCheckedCase(), "CollectionWithReferencesPage");
8+ var innerEntity = prop.Projection.Type;
9+ var innerEntityType = innerEntity.Name.ToCheckedCase();
810
911var features = host.CurrentType.GetFeatures();
1012#>
@@ -15,6 +17,7 @@ namespace <#=this.GetNamespaceName(prop.Class.AsOdcmClass())#>
1517 using System.Collections.Generic;
1618 using System.Net.Http;
1719 using System.Threading;
20+ using System.Linq.Expressions;
1821
1922 <#=this.GetCollectionWithReferencesInterfaceDefinition(prop)#>
2023 {
@@ -39,6 +42,13 @@ namespace <#=this.GetNamespaceName(prop.Class.AsOdcmClass())#>
3942 /// <returns>The request object to send.</returns>
4043 I<#=collectionRequest#> Expand(string value);
4144
45+ /// <summary>
46+ /// Adds the specified expand value to the request.
47+ /// </summary>
48+ /// <param name="expandExpression">The expression from which to calculate the expand value.</param>
49+ /// <returns>The request object to send.</returns>
50+ I<#=collectionRequest#> Expand(Expression<Func<<#=innerEntityType#>, object>> expandExpression);
51+
4252<# } #>
4353<# if (features.CanSelect) { #>
4454 /// <summary>
@@ -48,6 +58,13 @@ namespace <#=this.GetNamespaceName(prop.Class.AsOdcmClass())#>
4858 /// <returns>The request object to send.</returns>
4959 I<#=collectionRequest#> Select(string value);
5060
61+ /// <summary>
62+ /// Adds the specified select value to the request.
63+ /// </summary>
64+ /// <param name="selectExpression">The expression from which to calculate the select value.</param>
65+ /// <returns>The request object to send.</returns>
66+ I<#=collectionRequest#> Select(Expression<Func<<#=innerEntityType#>, object>> selectExpression);
67+
5168<# } #>
5269<# if (features.CanUseTop) { #>
5370 /// <summary>
0 commit comments