55
66var 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#>
915namespace <#=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