@@ -27,7 +27,7 @@ if(!withReference && !entityReference)
2727foreach(var prop in entity.NavigationProperties())
2828{
2929 var fetcher = string.Empty;
30- fetcher = writer.GetPrefix() + prop.Type.Name.ToUpperFirstChar() + "RequestBuilder";
30+ fetcher = writer.GetPrefix() + prop.Projection. Type.Name.ToUpperFirstChar() + "RequestBuilder";
3131
3232 if(!classes.Contains(fetcher)) classes.Add(fetcher);
3333
@@ -57,9 +57,9 @@ foreach(var prop in entity.GetProperties(typeName:"Stream"))
5757 }
5858}
5959
60- foreach(var prop in entity.Properties.Where( prop => prop.Type is OdcmMediaClass))
60+ foreach(var prop in entity.Properties.Where(prop => prop.Projection .Type is OdcmMediaClass))
6161{
62- var streamRequest = writer.GetPrefix() + prop.Type.Name.ToUpperFirstChar() + "StreamRequest";
62+ var streamRequest = writer.GetPrefix() + prop.Projection. Type.Name.ToUpperFirstChar() + "StreamRequest";
6363 if (!classes.Contains(streamRequest))
6464 {
6565 classes.Add(streamRequest);
@@ -77,10 +77,10 @@ foreach(var func in entity.Methods)
7777}
7878
7979foreach(var complexType in entity.Properties.Where(prop => prop.LongDescriptionContains("navigable") ||
80- prop.Type.LongDescriptionContains("navigable"))
81- .Where(prop => prop.Type is OdcmClass))
80+ prop.Projection. Type.LongDescriptionContains("navigable"))
81+ .Where(prop => prop.Projection. Type is OdcmClass))
8282{
83- var requestType = writer.GetPrefix() + complexType.Type.Name.ToUpperFirstChar() + "RequestBuilder";
83+ var requestType = writer.GetPrefix() + complexType.Projection. Type.Name.ToUpperFirstChar() + "RequestBuilder";
8484 if (!classes.Contains(requestType))
8585 {
8686 classes.Add(requestType);
@@ -133,19 +133,19 @@ if(!withReference && !entityReference)
133133foreach(var prop in entity.NavigationProperties())
134134{
135135 var propInstanceName = prop.Name.ToLowerFirstChar();
136- var innerPropTypeName = writer.GetPrefix() + prop.Type.Name.ToUpperFirstChar();
136+ var innerPropTypeName = writer.GetPrefix() + prop.Projection. Type.Name.ToUpperFirstChar();
137137 var innerPropTypeRequestName = innerPropTypeName + "RequestBuilder";
138138
139139 if(prop.IsCollection)
140140 {
141141 var collectionNamer = prop.IsReference() ? "CollectionWithReferences" : "Collection";
142142 var collectionRequestName = writer.GetPrefix() + prop.Class.Name.ToUpperFirstChar() + prop.Name.ToUpperFirstChar() + collectionNamer + "RequestBuilder";
143- var innerPropInstanceName = prop.Type.Name.ToLowerFirstChar();
143+ var innerPropInstanceName = prop.Projection. Type.Name.ToLowerFirstChar();
144144#>
145145- (<#=collectionRequestName#> *)<#=propInstanceName#>;
146146
147147<#
148- if (!(prop.Type is OdcmComplexClass) || prop.LongDescriptionContains("queryable"))
148+ if (!(prop.Projection. Type is OdcmComplexClass) || prop.LongDescriptionContains("queryable"))
149149 {
150150#>
151151- (<#=innerPropTypeRequestName#> *)<#=propInstanceName#>:(NSString *)<#=innerPropInstanceName#>;
@@ -162,11 +162,11 @@ foreach(var prop in entity.NavigationProperties())
162162 }
163163}
164164foreach(var complexType in entity.Properties.Where(prop => prop.LongDescriptionContains("navigable") ||
165- prop.Type.LongDescriptionContains("navigable"))
166- .Where(prop => prop.Type is OdcmClass))
165+ prop.Projection. Type.LongDescriptionContains("navigable"))
166+ .Where(prop => prop.Projection. Type is OdcmClass))
167167{
168168#>
169- - (<#=writer.GetPrefix() + complexType.Type.Name.ToUpperFirstChar()#>RequestBuilder *) <#=complexType.Name#>;
169+ - (<#=writer.GetPrefix() + complexType.Projection. Type.Name.ToUpperFirstChar()#>RequestBuilder *) <#=complexType.Name#>;
170170
171171<#
172172}
@@ -182,10 +182,10 @@ foreach(var prop in entity.GetProperties(typeName:"Stream"))
182182
183183<#
184184}
185- foreach(var prop in entity.Properties.Where( prop => prop.Type is OdcmMediaClass))
185+ foreach(var prop in entity.Properties.Where( prop => prop.Projection. Type is OdcmMediaClass))
186186{
187187 var propName = prop.Name.ToUpperFirstChar();
188- var propRequestName = writer.GetPrefix() + prop.Type.Name.ToUpperFirstChar() + "StreamRequest";
188+ var propRequestName = writer.GetPrefix() + prop.Projection. Type.Name.ToUpperFirstChar() + "StreamRequest";
189189#>
190190- (<#=propRequestName#> *) <#=propName.ToLowerFirstChar()#>ValueWithOptions:(NSArray *)options;
191191
0 commit comments