Skip to content

Commit 5d56c1d

Browse files
committed
ECRB.cs.tt - fixed template so that irt produced fewer whitepace junk changes.
1 parent 6ad70ce commit 5d56c1d

File tree

1 file changed

+42
-5
lines changed

1 file changed

+42
-5
lines changed

Templates/CSharp/Requests/EntityCollectionRequestBuilder.cs.tt

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
var prop = host.CurrentType.AsOdcmProperty();
77

8+
var collectionRequestBuilderConstructor = this.GetCollectionRequestBuilderConstructor(prop);
9+
var collectionRequestMethod = this.GetCollectionRequestMethod(prop);
10+
var collectionRequestMethodWithOptions = this.GetCollectionRequestMethodWithOptions(prop);
11+
var collectionIndexRequestBuilder = this.GetCollectionIndexRequestBuilder(prop);
12+
var methodProperties = this.GetMethodProperties(prop.Projection.Type.AsOdcmClass(), true);
13+
814
#>
915
namespace <#=this.GetNamespaceName(prop.Class.AsOdcmClass())#>
1016
{
@@ -13,14 +19,45 @@ namespace <#=this.GetNamespaceName(prop.Class.AsOdcmClass())#>
1319

1420
<#=this.GetCollectionClassDefinition(prop)#>
1521
{
16-
<#=this.GetCollectionRequestBuilderConstructor(prop)#>
22+
<#
23+
if (collectionRequestBuilderConstructor.Length > 0)
24+
{
25+
#>
26+
<#=collectionRequestBuilderConstructor#>
27+
<#
28+
}
29+
#><#
30+
if (collectionRequestMethod.Length > 0)
31+
{
32+
#>
1733

18-
<#=this.GetCollectionRequestMethod(prop)#>
34+
<#=collectionRequestMethod#>
35+
<#
36+
}
37+
#><#
38+
if (collectionRequestMethodWithOptions.Length > 0)
39+
{
40+
#>
1941

20-
<#=this.GetCollectionRequestMethodWithOptions(prop)#>
42+
<#=collectionRequestMethodWithOptions#>
43+
<#
44+
}
45+
#><#
46+
if (collectionIndexRequestBuilder.Length > 0)
47+
{
48+
#>
2149

22-
<#=this.GetCollectionIndexRequestBuilder(prop)#>
50+
<#=collectionIndexRequestBuilder#>
51+
<#
52+
}
53+
#><#
54+
if (methodProperties.Length > 0)
55+
{
56+
#>
2357

24-
<#=this.GetMethodProperties(prop.Projection.Type.AsOdcmClass(), true) #>
58+
<#=methodProperties#>
59+
<#
60+
}
61+
#>
2562
}
2663
}

0 commit comments

Comments
 (0)